示例#1
0
 /**
  * checks the login password, returns false if failed. sets $_SESSION['validated']
  * if successful
  * @param <string> $passAttempt
  * @param <string> $salt
  * @param <string> $password
  * @return <boolean>
  */
 public static final function CheckLoginAttempt($passAttempt, $salt, $password){
     if ($password != _FCORE::GetSecondOrderHash($passAttempt, $salt)){
         return false;
     }
     $_SESSION['validated'] = 1;
     return true;
 }