mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-05-30 06:49:11 +02:00
Use single quote in raw SQL to fix postgres error
This commit is contained in:
parent
22b0d1293f
commit
02ebccb4de
@ -27,7 +27,7 @@ class CaseInsensitiveEmailExists implements Rule
|
||||
public function passes($attribute, $value)
|
||||
{
|
||||
$user = DB::table('users')
|
||||
->whereRaw('email = "' . strtolower($value) . '"' . ('sqlite' === config('database.default') ? ' COLLATE NOCASE' : ''))
|
||||
->whereRaw('email = \'' . strtolower($value) . '\'' . ('sqlite' === config('database.default') ? ' COLLATE NOCASE' : ''))
|
||||
->first();
|
||||
|
||||
return !$user ? false : true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user