From 1ecdbdd9a474ad2d7e2797d70f545819dcf5badd Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 15 Jul 2022 17:31:54 +0900 Subject: [PATCH] fix: reset $this->tempUser after save Email Identity --- src/Models/UserModel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Models/UserModel.php b/src/Models/UserModel.php index 1663ccc7d..e60d3e40b 100644 --- a/src/Models/UserModel.php +++ b/src/Models/UserModel.php @@ -290,12 +290,14 @@ protected function saveEmailIdentity(array $data): array $user->password_hash = $this->tempUser->password_hash ?? ''; $user->saveEmailIdentity(); + $this->tempUser = null; return $data; } // Update $this->tempUser->saveEmailIdentity(); + $this->tempUser = null; return $data; }