Commit 9fe9144a authored by Dries's avatar Dries

- Patch #169937 by Heine, drumm: user_save should not regenerate the session...

- Patch #169937 by Heine, drumm: user_save should not regenerate the session even when the current user is not the edited user.
parent 90276160
......@@ -282,7 +282,9 @@ function user_save($account, $edit = array(), $category = 'account') {
// the current one.
if (!empty($edit['pass'])) {
drupal_session_destroy_uid($account->uid);
drupal_session_regenerate();
if ($account->uid == $GLOBALS['user']->uid) {
drupal_session_regenerate();
}
}
// Refresh user object.
......
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