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