X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fplatal.php;h=0fb4c19b04797e9d44227fcce3c5cd6099597b55;hb=2ee43273acd74ef5a3041945f82cb2aadefae685;hp=158521418fff3cd5c7d67254b0452c03720ea33a;hpb=842706532d5214d69a31086d78de90fff35d8153;p=platal.git diff --git a/modules/platal.php b/modules/platal.php index 1585214..0fb4c19 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -202,7 +202,7 @@ class PlatalModule extends PLModule if ($globals->mailstorage->googleapps_domain) { require_once 'googleapps.inc.php'; $account = new GoogleAppsAccount(S::v('uid'), S::v('forlife')); - if ($account->g_status == 'active' && $account->sync_password) { + if ($account->active() && $account->sync_password) { $account->set_password($password); } } @@ -366,10 +366,8 @@ Adresse de secours : " . Post::v('email') : "")); // updates the Google Apps password as well. if ($globals->mailstorage->googleapps_domain) { require_once 'googleapps.inc.php'; - require_once 'user.func.inc.php'; - $forlife = get_user_forlife($uid, '_silent_user_callback'); - $account = new GoogleAppsAccount($uid, $forlife); - if ($account->g_status == 'active' && $account->sync_password) { + $account = new GoogleAppsAccount($uid); + if ($account->active() && $account->sync_password) { $account->set_password($password); } }