mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Adjust boolean check of is_email_confirmed to suppress extraneous user activation events (#3163)
This commit is contained in:
@@ -358,7 +358,7 @@ class User extends AbstractModel
|
||||
*/
|
||||
public function activate()
|
||||
{
|
||||
if ($this->is_email_confirmed !== true) {
|
||||
if (! $this->is_email_confirmed) {
|
||||
$this->is_email_confirmed = true;
|
||||
|
||||
$this->raise(new Activated($this));
|
||||
|
Reference in New Issue
Block a user