mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-20 21:26:23 +01:00
New format of recovery key: xxxxx-xxxxx-xxxxx-xxxxx
TODO: adjust account lost recovery
This commit is contained in:
@@ -27,7 +27,7 @@ if(isset($_POST['registeraccountsave']) && $_POST['registeraccountsave'] == "1")
|
||||
if($reg_password == $account_logged->getPassword()) {
|
||||
if(empty($old_key)) {
|
||||
$show_form = false;
|
||||
$new_rec_key = generateRandomString(10, false, true, true);
|
||||
$new_rec_key = generateRecoveryKey();
|
||||
|
||||
$account_logged->setCustomField("key", $new_rec_key);
|
||||
$account_logged->logAction('Generated recovery key.');
|
||||
|
||||
Reference in New Issue
Block a user