mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
* fixed recovering account and changing password when salt is enabled
* added 'enabled' field in myaac_hooks table, which can enable or disable specified hook * password change minimal/maximal length is now more precise
This commit is contained in:
@@ -505,7 +505,7 @@ if($config['mail_enabled'])
|
||||
{
|
||||
$salt = generateRandomString(10, false, true, true);
|
||||
$newpassword_with_salt = $salt . $newpassword;
|
||||
$account->setSalt($salt);
|
||||
$account->setCustomField('salt', $salt);
|
||||
}
|
||||
|
||||
$account->setPassword(encrypt($newpassword_with_salt));
|
||||
|
Reference in New Issue
Block a user