Commit f829e0d6 authored by kiz_0987's avatar kiz_0987

#63474 - Fixed sync of drupal/Gallery2 user passwords.

parent 705fd23b
......@@ -51,7 +51,7 @@ function gallery_update_user(&$edit, $user) {
$user->language = ($edit['language']) ? $edit['language'] : gallery_get_language($user);
$user->pass = ($edit['pass']) ? md5($edit['pass']) : $user->pass;
$user->status = ($edit['status']) ? $edit['status'] : $user->status;
$user->mail = ($edit['email']) ? $edit['mail'] : $user->mail;
$user->mail = ($edit['mail']) ? $edit['mail'] : $user->mail;
// Note: $user->roles is organized as [$rid]=>[$role_name], but edit['roles'] is [$rid]=>[$position]
$user->roles = ($edit['roles']) ? $edit['roles'] : $user->roles;
// Use full name from profile if it exists
......
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