Update LoginForm.php
This commit is contained in:
parent
8a1f362e9f
commit
a52ca24ecd
@ -58,9 +58,8 @@ class LoginForm extends Model
|
||||
{
|
||||
if ($this->validate()) {
|
||||
return Yii::$app->user->login($this->getUser(), $this->rememberMe ? 3600*24*30 : 0);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user