Optimize code (account number generation)

Thanks kamil-karkus for suggestion
This commit is contained in:
slawkens
2022-05-31 15:13:59 +02:00
parent 0abb9384a6
commit afea618867
3 changed files with 8 additions and 5 deletions

View File

@@ -218,7 +218,7 @@ if($save)
if (!config('account_login_by_email')) {
$tmp_account = (USE_ACCOUNT_NAME ? $account_name : $account_id);
}
if($config['mail_enabled'] && $config['account_mail_verify'])
{
$hash = md5(generateRandomString(16, true, true) . $email);