From 1549059d07f3e752e52ad5d794648fd389170f94 Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Sat, 17 Jul 2010 18:54:48 +0200 Subject: [PATCH] Reenables updates of the GoogleApps password from the admin pages. Signed-off-by: Vincent Zanotti --- modules/admin.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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'); -- 2.1.4