X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fgoogleapps.php;h=263a24d3f5156611c95d8b7aa998b14f9c3db855;hb=a81ee98706ff11231e6d708270e2fb1c97775650;hp=d359446ccac7cadc67cbfc966953a7d609a4d180;hpb=4baa73230fd89061a8e53904cf633e10c42d8603;p=platal.git diff --git a/modules/googleapps.php b/modules/googleapps.php index d359446..263a24d 100644 --- a/modules/googleapps.php +++ b/modules/googleapps.php @@ -69,9 +69,9 @@ class GoogleAppsModule extends PLModule } else { $account->set_password_sync(false); } - } elseif ($action == 'password' && Post::has('response2') && !$account->sync_password) { + } elseif ($action == 'password' && Post::has('pwhash') && Post::t('pwhash') && !$account->sync_password) { S::assert_xsrf_token(); - $account->set_password(Post::v('response2')); + $account->set_password(Post::t('pwhash')); } if ($action == 'suspend' && Post::has('suspend') && $account->active()) { @@ -104,7 +104,7 @@ class GoogleAppsModule extends PLModule if ($password_sync) { $password = $user->password(); } else { - $password = Post::v('response2'); + $password = Post::t('pwhash'); } $account->create($password_sync, $password, $redirect_mails);