mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-23 04:50:46 +00:00
verify email has not already been registered for an account, regardless of case
This commit is contained in:
parent
be294c84ca
commit
a114d4b1cf
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class UserCreate extends Command
|
|||
|
||||
$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...');
|
||||
exit;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue