X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fplatal.php;h=077a5045bed7490f54c1d97c2dd9a586f61f0c34;hb=eb0dd7adf65fadbee6521766fadf5a3ff8cec25e;hp=2e6570ce0a8bf35c1b78050630d8795d3dcaefcb;hpb=a7d35093a40837b3a17d7fbac0259995f084812c;p=platal.git diff --git a/modules/platal.php b/modules/platal.php index 2e6570c..077a504 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -202,7 +202,7 @@ class PlatalModule extends PLModule // updates the Google Apps password as well. if ($globals->mailstorage->googleapps_domain) { require_once 'googleapps.inc.php'; - $account = new GoogleAppsAccount(S::v('uid'), S::v('forlife')); + $account = new GoogleAppsAccount(S::user()); if ($account->active() && $account->sync_password) { $account->set_password($password); } @@ -367,7 +367,7 @@ Adresse de secours : " . Post::v('email') : "")); // updates the Google Apps password as well. if ($globals->mailstorage->googleapps_domain) { require_once 'googleapps.inc.php'; - $account = new GoogleAppsAccount($uid); + $account = new GoogleAppsAccount(User::getSilent($uid)); if ($account->active() && $account->sync_password) { $account->set_password($password); }