public function beforeLogin()
    {
        if ($this->is_guest) {
            $login = $this->getLogin();
            throw new AuthException(sprintf(
                'Cannot login user "%s" as they are not registered.', $login
            ));
        }

        parent::beforeLogin();
    }
public function beforeLogin()
    {
        if ($this->is_guest) {
            $login = $this->getLogin();
            throw new AuthException(sprintf(
                'Cannot login user "%s" as they are not registered.', $login
            ));
        }

        parent::beforeLogin();
    }
public function beforeLogin ( ) { if ( $ this -> is_guest ) { $ login = $ this -> getLogin ( ) ; throw new AuthException ( sprintf ( 'Cannot login user "%s" as they are not registered.' , $ login ) ) ; } parent :: beforeLogin ( ) ; }
Before login event
@return void
Before login event