Skip to content

Commit 4ffc26a

Browse files
authored
Adjust boolean check of is_email_confirmed to suppress extraneous user activation events (#3163)
1 parent 5f110f7 commit 4ffc26a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/User/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public function checkPassword($password)
358358
*/
359359
public function activate()
360360
{
361-
if ($this->is_email_confirmed !== true) {
361+
if (! $this->is_email_confirmed) {
362362
$this->is_email_confirmed = true;
363363

364364
$this->raise(new Activated($this));

0 commit comments

Comments
 (0)