|
From: mdw c. <myd...@li...> - 2002-02-19 11:06:21
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/modules/auth
Modified Files:
auth.class.php
Log Message:
Fixing the strange bug of 'INVALID CREDENTIAL'
even if you enter a good login/pass mydynaweb said : your login/pass are not good....
Now it works
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/modules/auth/auth.class.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- auth.class.php 28 Jan 2002 12:24:09 -0000 1.7
+++ auth.class.php 19 Feb 2002 11:05:50 -0000 1.8
@@ -2,7 +2,7 @@
//!! Module AUTH
//! A module that manage authentification for MDW
-// $Id: auth.class.php,v 1.7 2002/01/28 12:24:09 bligneri Exp $
+// $Id: auth.class.php,v 1.8 2002/02/19 11:05:50 sukria Exp $
/*!TODO
ALL !
@@ -200,7 +200,7 @@
}
-function check_session ($SESSION)
+function check_session ($SESSION, $mode='USER')
///////////////////////////////////////////////////////
// this function take the session id stored in the
// cookie and spell the look_for_session_in_db function
@@ -275,7 +275,7 @@
{
// look for session in the db...
- if (LOGIN_DELAY) {
+ if (strlen(LOGIN_DELAY)) {
$login_delay = LOGIN_DELAY;
}
else {
|