Set password to empty string when reloading login form (#158)
This commit is contained in:
parent
988bfd39df
commit
fc82ba48d0
@ -79,6 +79,8 @@ class SiteController extends Controller
|
|||||||
if ($model->load(Yii::$app->request->post()) && $model->login()) {
|
if ($model->load(Yii::$app->request->post()) && $model->login()) {
|
||||||
return $this->goBack();
|
return $this->goBack();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$model->password = '';
|
||||||
return $this->render('login', [
|
return $this->render('login', [
|
||||||
'model' => $model,
|
'model' => $model,
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user