From cfd8ba95ef0c94fe5d680d6671950b2ca557c811 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Tue, 25 Oct 2016 11:45:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=B0?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=B2=D0=B0=D0=BB=D0=B8=D0=B4=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D1=8E=20=D0=B4=D0=BB=D1=8F=20=D1=84=D0=BE=D1=80=D0=BC,=20?= =?UTF-8?q?=D0=B3=D0=B4=D0=B5=20=D0=BD=D0=B5=20=D1=83=D1=87=D0=B0=D1=81?= =?UTF-8?q?=D1=82=D0=B2=D1=83=D1=8E=D1=82=20email=20=D0=B8=20username?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/models/authentication/RecoverPasswordForm.php | 2 +- api/models/profile/AcceptRulesForm.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/models/authentication/RecoverPasswordForm.php b/api/models/authentication/RecoverPasswordForm.php index 31a2998..243638a 100644 --- a/api/models/authentication/RecoverPasswordForm.php +++ b/api/models/authentication/RecoverPasswordForm.php @@ -52,7 +52,7 @@ class RecoverPasswordForm extends KeyConfirmationForm { throw new ErrorException('Unable remove activation key.'); } - if (!$account->save()) { + if (!$account->save(false)) { throw new ErrorException('Unable activate user account.'); } diff --git a/api/models/profile/AcceptRulesForm.php b/api/models/profile/AcceptRulesForm.php index 05785f0..1e25381 100644 --- a/api/models/profile/AcceptRulesForm.php +++ b/api/models/profile/AcceptRulesForm.php @@ -21,7 +21,7 @@ class AcceptRulesForm extends ApiForm { public function agreeWithLatestRules() : bool { $account = $this->getAccount(); $account->rules_agreement_version = LATEST_RULES_VERSION; - if (!$account->save()) { + if (!$account->save(false)) { throw new ErrorException('Cannot set user rules version'); }