Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The method described in http://drupal.org/node/1850524 is not working because the autoloader won't find the MyPasswordHasher class.
It is also outdated because instead of the bundle classes it should use bundle YAMLs.
Comments
Comment #1
xjmComment #2
smiletrl CreditAttribution: smiletrl commentedLet me try to do this:)
Comment #3
chx CreditAttribution: chx commentedThis should not serve as a site specific override. Just write a module. Change the bundle to a modulename.services.yml. For how those look, ample examples in core/core.services.yml
Comment #4
smiletrl CreditAttribution: smiletrl commentedChange log2 iteration count for default password hashing implementation
drupal8, in custom module mymodule directory, add file mymodule.sevices.yml containing:
This would override default iteration count in core.
Substitute default password hashing implementation
drupal8, in custom module mymodule directory, add file mymodule.sevices.yml containing:
Contents of Drupal\mymodule\MyPassword\MyPasswordHasher.php should implement PasswordInterface, like this:
This will override default password hashing implementation.
Comment #5
BerdirFeel free to simply update the change notice, it can always be tuned further :)
Comment #6
chx CreditAttribution: chx commentedThanks a ton. I updated the change notice.
Comment #8
xjmUntagging. Please remove the "Needs change notification" tag when the change notice task is complete.