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
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.

AttachmentSize
salt.patch1.65 KB
user.patch513 bytes

#1

metaltoad - December 4, 2008 - 19:30

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

}

 
 

Drupal is a registered trademark of Dries Buytaert.