From: Vincent Zanotti Date: Sat, 17 Jul 2010 16:54:48 +0000 (+0200) Subject: Reenables updates of the GoogleApps password from the admin pages. X-Git-Tag: xorg/1.0.1~15^2~35 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1549059d07f3e752e52ad5d794648fd389170f94;p=platal.git Reenables updates of the GoogleApps password from the admin pages. Signed-off-by: Vincent Zanotti --- diff --git a/modules/admin.php b/modules/admin.php index 3c0cb27..5970e89 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -426,11 +426,10 @@ class AdminModule extends PLModule } if (!Post::blank('hashpass')) { $to_update['password'] = Post::s('hashpass'); - // TODO: Propagate the password update to GoogleApps, when required. Eg: - // $account = new GoogleAppsAccount($user); - // if ($account->active() && $account->sync_password) { - // $account->set_password($pass_encrypted); - // } + $account = new GoogleAppsAccount($user); + if ($account->active() && $account->sync_password) { + $account->set_password(Post::s('hashpass')); + } } if (!Post::blank('weak_password')) { $to_update['weak_password'] = Post::s('weak_password');