Login page is now mark as a 403 error in order to force ajax queries to fail
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 29 Sep 2007 20:51:24 +0000 (22:51 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 29 Sep 2007 20:51:24 +0000 (22:51 +0200)
client-side if the session has timeouted.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/platal.php

index 7524b21..745e059 100644 (file)
@@ -271,6 +271,7 @@ class Platal
 
     public function force_login(PlatalPage &$page)
     {
+        header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');
         if (S::logged()) {
             $page->changeTpl('core/password_prompt_logged.tpl');
             $page->addJsLink('do_challenge_response_logged.js');