Skip to content

Commit

Permalink
Set password to empty string when reloading login form (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
SOHELAHMED7 authored and samdark committed Nov 16, 2017
1 parent 988bfd3 commit fc82ba4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/SiteController.php
Expand Up @@ -79,6 +79,8 @@ public function actionLogin()
if ($model->load(Yii::$app->request->post()) && $model->login()) {
return $this->goBack();
}

$model->password = '';
return $this->render('login', [
'model' => $model,
]);
Expand Down

0 comments on commit fc82ba4

Please sign in to comment.