challenge : on utilise le challenge de DiogenesCoreSession cvs diff xorg.session...
authorx2000habouzit <x2000habouzit>
Wed, 28 Jan 2004 16:54:47 +0000 (16:54 +0000)
committerx2000habouzit <x2000habouzit>
Wed, 28 Jan 2004 16:54:47 +0000 (16:54 +0000)
htdocs/index.php
templates/password_prompt.tpl
templates/password_prompt_logged.tpl

index 41fe38e..2cd2ad1 100644 (file)
@@ -1,8 +1,7 @@
 <?php
 require("auto.prepend.inc.php");
+new_skinned_page('index.tpl', AUTH_PUBLIC);
 if(logged())
     header("Location: login.php");
-new_skinned_page('index.tpl', AUTH_PUBLIC);
-
 $page->display();
 ?>
index 6de6951..89dcb59 100644 (file)
@@ -1,4 +1,4 @@
-{* $Id: password_prompt.tpl,v 1.5 2004-01-26 19:40:51 x2000habouzit Exp $ *}
+{* $Id: password_prompt.tpl,v 1.6 2004-01-28 16:54:47 x2000habouzit Exp $ *}
 <noscript>
   <span class="erreur">
     Ton navigateur n'accepte pas le javaScript !!
@@ -90,7 +90,7 @@ Probl
 
 <!-- Set up the form with the challenge value and an empty reply value //-->
 <form action="{$smarty.server.REQUEST_URI}" method=post name="loginsub">
-  <input type="hidden" name="challenge" value="{$smarty.session.challenge}" />
+  <input type="hidden" name="challenge" value="{$smarty.session.session.challenge}" />
   <input type="hidden" name="response"  value="" />
   <input type="hidden" name="username"  value="" />
 </form>
index 5a75bb2..9509a6c 100644 (file)
@@ -1,4 +1,4 @@
-{* $Id: password_prompt_logged.tpl,v 1.4 2004-01-26 19:40:51 x2000habouzit Exp $ *}
+{* $Id: password_prompt_logged.tpl,v 1.5 2004-01-28 16:54:47 x2000habouzit Exp $ *}
 
 <div style="text-align:center">
   <table width="90%" summary="Accès sécurisé">
@@ -47,8 +47,8 @@
 
 <!-- Set up the form with the challenge value and an empty reply value -->
 <form action="{$smarty.server.REQUEST_URI}" method=post name="loginsub">
-  <input type="hidden" name="challenge" value="{$smarty.session.challenge}">
-  <input type="hidden" name="username" value="{$smarty.cookies.ORGlogin}">
+  <input type="hidden" name="challenge" value="{$smarty.session.session->challenge}">
+  <input type="hidden" name="username"  value="{$smarty.cookies.ORGlogin}">
   <input type="hidden" name="response"  value="">
 </form>