From a114d4b1cf89c2b52b9dde8ed7612f7678b97b01 Mon Sep 17 00:00:00 2001 From: Jackson Schilling Date: Thu, 16 Jan 2025 09:07:56 -0500 Subject: [PATCH] verify email has not already been registered for an account, regardless of case --- app/Console/Commands/UserCreate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/UserCreate.php b/app/Console/Commands/UserCreate.php index 37a509461..b6aa617cd 100644 --- a/app/Console/Commands/UserCreate.php +++ b/app/Console/Commands/UserCreate.php @@ -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; }