mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-14 12:59:46 +01:00
$config_account_salt -> USE_ACCOUNT_SALT
This commit is contained in:
@@ -173,8 +173,7 @@ if($save)
|
||||
$new_account->create(NULL, $account_id);
|
||||
}
|
||||
|
||||
$config_salt_enabled = $db->hasColumn('accounts', 'salt');
|
||||
if($config_salt_enabled)
|
||||
if(USE_ACCOUNT_SALT)
|
||||
{
|
||||
$salt = generateRandomString(10, false, true, true);
|
||||
$password = $salt . $password;
|
||||
@@ -185,7 +184,7 @@ if($save)
|
||||
$new_account->unblock();
|
||||
$new_account->save();
|
||||
|
||||
if($config_salt_enabled)
|
||||
if(USE_ACCOUNT_SALT)
|
||||
$new_account->setCustomField('salt', $salt);
|
||||
|
||||
$new_account->setCustomField('created', time());
|
||||
|
||||
Reference in New Issue
Block a user