mirror of
https://github.com/elyby/accounts.git
synced 2024-12-27 07:30:18 +05:30
#100: password protection for email change form
This commit is contained in:
parent
c34f0947ad
commit
1b4249ecd7
@ -111,6 +111,7 @@ class AccountsController extends Controller {
|
|||||||
/** @var Account $account */
|
/** @var Account $account */
|
||||||
$account = Yii::$app->user->identity;
|
$account = Yii::$app->user->identity;
|
||||||
$model = new InitStateForm($account);
|
$model = new InitStateForm($account);
|
||||||
|
$model->load(Yii::$app->request->post());
|
||||||
if (!$model->sendCurrentEmailConfirmation()) {
|
if (!$model->sendCurrentEmailConfirmation()) {
|
||||||
return [
|
return [
|
||||||
'success' => false,
|
'success' => false,
|
||||||
|
Loading…
Reference in New Issue
Block a user