Skip to content
Snippets Groups Projects
Commit 51b02213 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#165358 by John Morahan: do not regenerate the session when the user is saved...

#165358 by John Morahan: do not regenerate the session when the user is saved without a password specified
parent db5311d1
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -246,7 +246,7 @@ function user_save($account, $array = array(), $category = 'account') { ...@@ -246,7 +246,7 @@ function user_save($account, $array = array(), $category = 'account') {
// If the password changed, delete all open sessions and recreate // If the password changed, delete all open sessions and recreate
// the current one. // the current one.
if (isset($array['pass'])) { if (!empty($array['pass'])) {
sess_destroy_uid($account->uid); sess_destroy_uid($account->uid);
sess_regenerate(); sess_regenerate();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment