Commit 51b02213 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#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
......@@ -246,7 +246,7 @@ function user_save($account, $array = array(), $category = 'account') {
// If the password changed, delete all open sessions and recreate
// the current one.
if (isset($array['pass'])) {
if (!empty($array['pass'])) {
sess_destroy_uid($account->uid);
sess_regenerate();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment