RedirectIfTwoFactorAuthenticatable
class RedirectIfTwoFactorAuthenticatable implements RedirectsIfTwoFactorAuthenticatable
Traits
Methods
void
dispatchIfListening(string $eventClass, Closure $event)
Dispatch the given event if listeners are registered.
from
DispatchesEvents
provider()
Get the current guard's user provider.
never
throwFailedAuthenticationException(Request $request)
Throw a failed authentication validation exception.
void
fireFailedEvent(Request $request, Authenticatable|null $user = null)
Fire the failed authentication attempt event with the given arguments.
Response
twoFactorChallengeResponse(Request $request, Authenticatable&Model $user)
Get the two factor authentication enabled response.
Details
in
DispatchesEvents at line 16
protected void
dispatchIfListening(string $eventClass, Closure $event)
Dispatch the given event if listeners are registered.
at line 32
__construct(LoginRateLimiter $limiter, Repository $config)
Create a new controller instance.
at line 62
protected Authenticatable&Model
validateCredentials(Request $request)
Attempt to validate the incoming credentials.
at line 98
protected UserProvider
provider()
Get the current guard's user provider.
at line 120
protected never
throwFailedAuthenticationException(Request $request)
Throw a failed authentication validation exception.
at line 132
protected void
fireFailedEvent(Request $request, Authenticatable|null $user = null)
Fire the failed authentication attempt event with the given arguments.
at line 146
protected Response
twoFactorChallengeResponse(Request $request, Authenticatable&Model $user)
Get the two factor authentication enabled response.