fixed welcome page and the header bar
This commit is contained in:
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];
|
||||
|
||||
|
||||
Reference in new issue
Block a user