Unset remember cookie when the current user's password is updated (#7819)

* Unset remember cookie when the current user's password is updated

* Update user_edit.php
This commit is contained in:
Alex
2026-03-26 22:10:13 +00:00
committed by GitHub
parent 630855586d
commit 1752ae3e94
+6
View File
@@ -548,6 +548,12 @@
$database->execute($sql, $parameters);
unset($sql, $parameters);
// Unset remember me cookie
if ($user_uuid == $_SESSION['user_uuid']) {
unset($_COOKIE['remember']);
setcookie('remember', '', time() - 3600, '/');
}
//send the password changed email
if (valid_email($user_email)) {
//generate email and body variables