Posted by blackdog on October 28, 2008 at 4:59pm
Jump to:
| Project: | Salt |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
We had to patch the salt module to make it work correctly with Drupal 6.5.
Also, a small patch to the user.module is necessary to make auto generated password get salted. I've attached both patches.
| Attachment | Size |
|---|---|
| salt.patch | 1.65 KB |
| user.patch | 513 bytes |
Comments
#1
Here's a replacement/simplification for the existing salt_login_validate function that works well:
function salt_login_validate($form, &$form_state) {
if (!empty($form_state['values']['pass'])) {
$form_state['values']['pass'] = $form_state['values']['pass'] . variable_get('salt', '');
}
}
#2
Is this fixed? Beacuse I'm having problems as you can see in http://drupal.org/node/960190
Thanks
#3
I've applied other changes to the module which should have fixed this. As for the auto-generated password not being salted, I recommend that the password be removed from the welcome e-mail template. Users can use the one-time login link to log in and get a salted password instead.
Please reopen if this issue has not been fixed.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.