X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fadmin.php;h=e03b3185c87f99fb70c8dbc91a495e84b417cd61;hb=c886c975766cc8c3b53d3d73a4bf592824577d93;hp=de86bfcaecb0c8705d77f7e040758fdff8b34b33;hpb=6eeb600e8d56aa77188d2618928109a876afb289;p=platal.git diff --git a/modules/admin.php b/modules/admin.php index de86bfc..e03b318 100644 --- a/modules/admin.php +++ b/modules/admin.php @@ -601,7 +601,7 @@ class AdminModule extends PLModule // and the password was changed, updates the Google Apps password as well. if ($globals->mailstorage->googleapps_domain && Env::v('newpass_clair') != "********") { require_once 'googleapps.inc.php'; - $account = new GoogleAppsAccount($mr['user_id'], $mr['forlife']); + $account = new GoogleAppsAccount(User::get($mr['forlife'])); if ($account->active() && $account->sync_password) { $account->set_password($pass_encrypted); } @@ -612,7 +612,7 @@ class AdminModule extends PLModule $new_fields['perms'] == 'disabled' && $new_fields['perms'] != $old_fields['perms']) { require_once 'googleapps.inc.php'; - $account = new GoogleAppsAccount($mr['user_id'], $mr['forlife']); + $account = new GoogleAppsAccount(User::get($mr['forlife'])); $account->suspend(); } break;