Fixes the code used to synchronize passwords back to Google Apps;
authorVincent Zanotti <vincent.zanotti@m4x.org>
Wed, 22 Feb 2012 04:48:21 +0000 (05:48 +0100)
committerVincent Zanotti <vincent.zanotti@m4x.org>
Wed, 22 Feb 2012 04:48:21 +0000 (05:48 +0100)
current code results in null being passed to gappsd, preventing any
synchronization from happening.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
modules/googleapps.php

index bad3836..a09ecfd 100644 (file)
@@ -70,7 +70,7 @@ class GoogleAppsModule extends PLModule
                 S::assert_xsrf_token();
                 if (Post::v('pwsync') == 'sync') {
                     $account->set_password_sync(true);
-                    $account->set_password(S::v('password'));
+                    $account->set_password($user->password());
                 } else {
                     $account->set_password_sync(false);
                 }