gallery.module initially sets the password in the gallery_user function when a new Drupal account is created. This allows direct access logins (such as with Gallery Remote) to function.

However, it doesn't change the password when a Drupal user edits his/her account.

I modified the function gallery_user in the following section:


 case 'update':
      _gallery_init();

      $ret = GalleryEmbed::updateUser($user->uid,
                                      array('username' => $edit['name'],
                                            'email' => $edit['mail'],
                                            'password' => $edit['password'] // THIS IS NEW
                                            ));

It now appears to synch -- I can change my pw in Drupal and use that new pw with Gallery Remote.
It does not appear to break anything (so far, knock on wood).

Comments

alexandreracine’s picture

Status: Active » Closed (fixed)

Hi, since there was some release lately please check out...

1- The G2 version 1.0 of gallery.
2- The latest version of this module.