Skip to content

Commit 1ecdbdd

Browse files
committed
fix: reset $this->tempUser after save Email Identity
1 parent 8868006 commit 1ecdbdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/Models/UserModel.php

+2
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,14 @@ protected function saveEmailIdentity(array $data): array
290290
$user->password_hash = $this->tempUser->password_hash ?? '';
291291

292292
$user->saveEmailIdentity();
293+
$this->tempUser = null;
293294

294295
return $data;
295296
}
296297

297298
// Update
298299
$this->tempUser->saveEmailIdentity();
300+
$this->tempUser = null;
299301

300302
return $data;
301303
}

0 commit comments

Comments
 (0)