From: Vincent Zanotti Date: Sun, 6 Apr 2008 09:40:23 +0000 (+0200) Subject: Prevents user from requesting multiple password synchronization due to GET requests. X-Git-Tag: xorg/0.9.16~24 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a33b54151c3af49a696c5a3cc317b2e6dfee3aa5;p=platal.git Prevents user from requesting multiple password synchronization due to GET requests. Signed-off-by: Vincent Zanotti --- diff --git a/modules/googleapps.php b/modules/googleapps.php index a78ab6c..fda080f 100644 --- a/modules/googleapps.php +++ b/modules/googleapps.php @@ -64,7 +64,7 @@ class GoogleAppsModule extends PLModule if ($subaction == 'sync') { $account->set_password_sync(true); $account->set_password(S::v('password')); - $page->trig("Ton mot de passe Google Apps sera dorénavant synchronisé avec ton mot de passe Polytechnique.org."); + pl_redirect('googleapps#password'); } else if ($subaction == 'nosync') { $account->set_password_sync(false); } else if (Post::has('response2') && !$account->sync_password) {