Adjust boolean check of is_email_confirmed to suppress extraneous user activation events (#3163)

This commit is contained in:
Garrett Grimm 2021-11-11 12:51:47 -08:00 committed by GitHub
parent c38b7d10aa
commit 268d03d4e8

View File

@ -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));