Update of /cvsroot/phpslash/phpslash-ft/class
In directory usw-pr-cvs1:/tmp/cvs-serv9481/phpslash-ft/class
Modified Files:
slashAuth.class slashAuthCR.class
Log Message:
return false on error
Index: slashAuth.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/slashAuth.class,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** slashAuth.class 8 Feb 2002 21:50:10 -0000 1.5
--- slashAuth.class 7 Mar 2002 21:45:36 -0000 1.6
***************
*** 106,110 ****
}
$this->auth["error"] = "Either your username or password are invalid.<br>Please try again.";
! return $uid;
}
--- 106,110 ----
}
$this->auth["error"] = "Either your username or password are invalid.<br>Please try again.";
! return false;
}
Index: slashAuthCR.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/slashAuthCR.class,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** slashAuthCR.class 8 Feb 2002 22:17:27 -0000 1.5
--- slashAuthCR.class 7 Mar 2002 21:45:36 -0000 1.6
***************
*** 123,128 ****
}
$this->auth["error"] = "Either your username or password are invalid.<br>Please try again.";
! return $uid;
! // TODO: If we're returning an error, shouldn't we also return 'false'?
}
--- 123,127 ----
}
$this->auth["error"] = "Either your username or password are invalid.<br>Please try again.";
! return false;
}
|