#100: password protection for email change form

This commit is contained in:
SleepWalker 2016-05-22 22:04:52 +03:00
parent c34f0947ad
commit 1b4249ecd7

View File

@ -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,