Prevents user from requesting multiple password synchronization due to GET requests.
authorVincent Zanotti <vincent.zanotti@polytechnique.org>
Sun, 6 Apr 2008 09:40:23 +0000 (11:40 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Sun, 6 Apr 2008 09:44:43 +0000 (11:44 +0200)
Signed-off-by: Vincent Zanotti <vincent.zanotti@polytechnique.org>
modules/googleapps.php

index a78ab6c..fda080f 100644 (file)
@@ -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) {