beforeLogin() protected method
This method is called before logging in a user. The default implementation will trigger the EVENT_BEFORE_LOGIN event. If you override this method, make sure you call the parent implementation so that the event is triggered.
protected boolean beforeLogin ( $identity, $cookieBased, $duration )$identity yii\web\IdentityInterface
The user identity information $cookieBased boolean
Whether the login is cookie-based $duration integer
Number of seconds that the