controllers/SiteController.php 1 location
|
@@ 142-146 (lines=5) @@
|
139 |
|
{ |
140 |
|
$resetPasswordForm = new ResetPasswordForm(Yii::$app->user->identity); |
141 |
|
|
142 |
|
if ($resetPasswordForm->load(Yii::$app->request->post()) && $resetPasswordForm->resetPassword()) { |
143 |
|
Yii::$app->session->setFlash('success', Yii::t('app', 'Password has been updated.')); |
144 |
|
|
145 |
|
return $this->refresh(); |
146 |
|
} |
147 |
|
|
148 |
|
return $this->render('account', [ |
149 |
|
'resetPasswordForm' => $resetPasswordForm, |
modules/admin/controllers/UserController.php 1 location
|
@@ 84-90 (lines=7) @@
|
81 |
|
{ |
82 |
|
$model = new UserModel(['scenario' => 'create']); |
83 |
|
|
84 |
|
if ($model->load(Yii::$app->request->post())) { |
85 |
|
if ($model->create()) { |
86 |
|
Yii::$app->session->setFlash('success', Yii::t('app', 'User has been created.')); |
87 |
|
|
88 |
|
return $this->redirect(['index']); |
89 |
|
} |
90 |
|
} |
91 |
|
|
92 |
|
return $this->render('create', [ |
93 |
|
'model' => $model, |