Replies: 1 comment 9 replies
-
Hi @Restingo, You would have to do this prior to calling If you're using Laravel's older authentication foundation, you could do this: // app/Http/Controllers/Auth/LoginController.php
protected function credentials()
{
$credentials = [
'mail' => $request->email,
'password' => $request->password,
];
if ($user = User::whereEmail($request->email)->whereFallback(true)->first()) {
$credentials['fallback'] = $request->only('email', 'password');
}
return $credentials;
} |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to enable or disable ldap authentication and "fall back" to database directly with a field in the user table?
Beta Was this translation helpful? Give feedback.
All reactions