From a33b54151c3af49a696c5a3cc317b2e6dfee3aa5 Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Sun, 6 Apr 2008 11:40:23 +0200 Subject: [PATCH] Prevents user from requesting multiple password synchronization due to GET requests. Signed-off-by: Vincent Zanotti --- modules/googleapps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.1.4