fixed welcome page and the header bar

This commit is contained in:
ghassan committed 2026-01-21 18:14:20 +03:00
1 parent 5cbb26608c
commit 5c9c4aaa2d
8 files changed
+1025 -16

No files matched your search

@@ -36,7 +36,10 @@ class AuthenticatedSessionController extends Controller
$value = $request->email;
} else {
$field = 'mobile';
$value = trim(preg_replace('/[^\d\+]/', '', $request->email)); // Keep digits and +, trim
// Normalize mobile: remove all non-digits, then add + prefix
$cleanNumber = preg_replace('/[^\d]/', '', $request->email);
// Try with + prefix first (as stored in DB)
$value = '+' . $cleanNumber;
}
$credentials = [$field => $value, 'password' => $request->password];