New format of recovery key: xxxxx-xxxxx-xxxxx-xxxxx

TODO: adjust account lost recovery
This commit is contained in:
slawkens
2026-01-18 21:54:08 +01:00
parent 21e2eed640
commit babd822171
3 changed files with 10 additions and 2 deletions

View File

@@ -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.');