FluxBB\Auth\AuthenticatorInterface::login PHP Method

login() public method

public login ( array $credentials, $remember = false )
$credentials array
    public function login(array $credentials, $remember = false);

Usage Example

Esempio n. 1
0
 public function run()
 {
     $credentials = ['username' => $this->get('username'), 'password' => $this->get('password')];
     $remember = $this->get('remember');
     if (!$this->auth->login($credentials, $remember)) {
         throw new Exception('Login failure.');
     }
 }
AuthenticatorInterface