Open Slabar opened 2 years ago
This is the same with my problem. That's because the "authenticateUsing" method is called 2 times
The solving :
Fortify::authenticateUsing(function (Request $request) {
if(Validator::make($request->all(), [
'captcha' => 'required|captcha'
])) return;
$user = User::where('email', $request->email)->first();
if ($user &&
Hash::check($request->password, $user->password)) {
return $user;
}
});
Hello @isnunasrudin authenticateUsing()
indeed runs twice. Even when I put a blank callback, it still uses its default login mechanism.
Captcha does not pass validation. What could be the problem?
FortifyServiceProvider.php
LoginForm