X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fregister.php;h=9ad845704631de00a339845456cb3822990b99e1;hb=6f0ed746468397c663783a89f5b3b43f6fff77e2;hp=04f4ffc2c2079661fb2202e6ed187fd6cee78071;hpb=316b40d60daacd3aa3b480ccba0db6a3d97c093b;p=platal.git diff --git a/modules/register.php b/modules/register.php index 04f4ffc..9ad8457 100644 --- a/modules/register.php +++ b/modules/register.php @@ -405,11 +405,11 @@ class RegisterModule extends PLModule S::v('uid')); // If GoogleApps is enabled, and the user did choose to use synchronized passwords, - // and if the (stupid) user has decided to user /register/success another time, + // and if the (stupid) user has decided to use /register/success another time, // 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); }