mirror of
https://github.com/elyby/accounts.git
synced 2024-12-26 15:10:22 +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 */
|
||||
$account = Yii::$app->user->identity;
|
||||
$model = new InitStateForm($account);
|
||||
$model->load(Yii::$app->request->post());
|
||||
if (!$model->sendCurrentEmailConfirmation()) {
|
||||
return [
|
||||
'success' => false,
|
||||
|
Loading…
Reference in New Issue
Block a user