Small updates to make Salt module work
blackdog - October 28, 2008 - 16:59
| Project: | Salt |
| Version: | 6.x-1.1-beta |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
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 |

#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', '');
}
}