Merge pull request #1527 from RaspAP/fix/auth-user

Fix: Update user_id session var auth context
This commit is contained in:
Bill Zimmerman
2024-02-24 10:42:26 +01:00
committed by GitHub
2 changed files with 1 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ function DisplayAuthConfig($username)
fwrite($auth_file, password_hash($_POST['newpass'], PASSWORD_BCRYPT).PHP_EOL);
fclose($auth_file);
$username = $new_username;
$_SESSION['user_id'] = $username;
$status->addMessage('Admin password updated');
} else {
$status->addMessage('Failed to update admin password', 'danger');