Closed (won't fix)
Project:
Drupal core
Version:
6.25
Component:
user.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2013 at 13:44 UTC
Updated:
17 Jan 2014 at 09:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
artkon commentedComment #2
mdupontuser_password() is used in a few place to generate a dummy password that will never be used (for example for tests, OpenID or other modules enabling external authentication, where users won't use this password to authenticate).
Therefore if you want to use user_password() in a custom module to generate passwords that will effectively be used or displayed to the user, you're better off writing a custom function, calling user_password() then altering it in your custom code (called only where needed) rather than calling a hook from inside user_password() (called everytime even when not needed).