verify email has not already been registered for an account, regardless of case

This commit is contained in:
Jackson Schilling 2025-01-16 09:07:56 -05:00
parent be294c84ca
commit a114d4b1cf

View file

@ -71,7 +71,7 @@ class UserCreate extends Command
$email = $this->ask('Email'); $email = $this->ask('Email');
if(User::whereEmail($email)->exists()) { if(User::whereRaw('lower(email) = ?', [strtolower($email)])->exists()) {
$this->error('Email already in use, please try again...'); $this->error('Email already in use, please try again...');
exit; exit;
} }