mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-19 03:04:05 +00:00
Fix case-sensitive email login
Email comparison on login now uses LOWER() for case-insensitive matching. Applied to both admin and customer portal login controllers. Fixes #424
This commit is contained in:
@@ -20,7 +20,7 @@ class LoginController extends Controller
|
||||
*/
|
||||
public function __invoke(CustomerLoginRequest $request, Company $company)
|
||||
{
|
||||
$user = Customer::where('email', $request->email)
|
||||
$user = Customer::whereRaw('LOWER(email) = ?', [strtolower($request->email)])
|
||||
->where('company_id', $company->id)
|
||||
->first();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user