Beispiel #1
0
 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;
     }
 }
Beispiel #2
0
 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;
     }
 }