* Both the password submit and hook_user_insert insert records
* The one from hook_user_insert is double hashed cause pass is already hashed at that stage
* Need to include the file that contains the hashing function
| Comment | File | Size | Author |
|---|---|---|---|
| password_policy_double_insert.patch | 1.75 KB | hefox |
Comments
Comment #1
erikwebb commentedShould we be trimming the password? If there is a leading or trailing space, won't that make our stored password hash different than the main Drupal table's?
Comment #2
coltraneDrupal's user_save() already trims the password so leading or trailing spaces aren't saved for passwords (they're also trimmed on login so it doesn't matter).
Patch looks good to me. RTBC
Comment #3
erikwebb commentedFixed. Thanks!
http://drupalcode.org/project/password_policy.git/commit/78d798d