Users created shouldnt be enabled by default, a user update job should enable users after checking guest status

This commit is contained in:
Deon George 2022-09-09 15:58:28 +10:00
parent 67f78b2f5d
commit 1f4c5c9774

View File

@ -152,7 +152,7 @@ abstract class Base
if (! $o->exists) {
$o->team_id = $this->enterprise_id ? NULL : $this->team()->id;
$o->enterprise_id = ($x=$this->enterprise())->exists ? $x->id : NULL;
$o->active = TRUE;
$o->active = FALSE;
$o->save();
Log::debug(sprintf('%s: User Created in DB [%s] (%s)',self::LOGKEY,$this->user_id,$o->id));