mirror of
https://github.com/flarum/core.git
synced 2025-08-02 14:37:49 +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()
|
public function activate()
|
||||||
{
|
{
|
||||||
if ($this->is_email_confirmed !== true) {
|
if (! $this->is_email_confirmed) {
|
||||||
$this->is_email_confirmed = true;
|
$this->is_email_confirmed = true;
|
||||||
|
|
||||||
$this->raise(new Activated($this));
|
$this->raise(new Activated($this));
|
||||||
|
Reference in New Issue
Block a user