예제 #1
0
파일: Auth.php 프로젝트: einstein95/FAOpen
 public function authenticate($credentials = NULL)
 {
     $user_auth = User::authenticate($credentials['username'], $credentials['password']);
     if ($user_auth instanceof User) {
         $this->setUser($user_auth);
         return true;
     } else {
         return false;
     }
 }
예제 #2
0
파일: Model.php 프로젝트: Lavoaster/PVLive
 public function authenticate($credentials = NULL)
 {
     $user_auth = User::authenticate($credentials['username'], $credentials['password']);
     if ($user_auth instanceof User) {
         $this->setUser($user_auth);
         return true;
     } else {
         \DF\Flash::addMessage('Could not authenticate your credentials!', 'red');
         return false;
     }
 }