Commit 57e7caa366b093675594df9785c134e4c61c0c71
1 parent
ffe503d1
images
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
frontend/controllers/LoginController.php
| @@ -37,7 +37,7 @@ class LoginController extends Controller | @@ -37,7 +37,7 @@ class LoginController extends Controller | ||
| 37 | //var_dump($_POST['Customer']['username']);die(); | 37 | //var_dump($_POST['Customer']['username']);die(); |
| 38 | $model = new Customer; | 38 | $model = new Customer; |
| 39 | if(!empty($_POST['Customer']['username'])){ | 39 | if(!empty($_POST['Customer']['username'])){ |
| 40 | - if($user = Customer::find()->where(['username'=>$_POST['User']['username']])->one()) | 40 | + if($user = Customer::find()->where(['username'=>$_POST['Customer']['username']])->one()) |
| 41 | $user->sendMsg(); | 41 | $user->sendMsg(); |
| 42 | Yii::$app->getSession()->setFlash('success', 'На указанный Вами эмейл отправленно письмо с паролем!'); | 42 | Yii::$app->getSession()->setFlash('success', 'На указанный Вами эмейл отправленно письмо с паролем!'); |
| 43 | return $this->refresh(); | 43 | return $this->refresh(); |