Deactivated registration

This commit is contained in:
Constantin Graf
2024-12-20 18:44:09 -05:00
committed by Constantin Graf
parent 28904b650e
commit fc0a840ded
44 changed files with 989 additions and 153 deletions

View File

@@ -35,7 +35,9 @@ class UserVerifyCommand extends Command
$this->info('Start verifying user with email "'.$email.'"');
/** @var User|null $user */
$user = User::where('email', $email)->first();
$user = User::query()->where('email', $email)
->where('is_placeholder', '=', false)
->first();
if ($user === null) {
$this->error('User with email "'.$email.'" not found.');