mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Adjust boolean check of is_email_confirmed to suppress extraneous user activation events (#3163)
This commit is contained in:
parent
c38b7d10aa
commit
268d03d4e8
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue
Block a user