TwoFactorAuthenticatedSessionController
class TwoFactorAuthenticatedSessionController extends Controller
Traits
Properties
| protected array | $middleware | The middleware registered on the controller. |
from Controller |
Methods
Register middleware on the controller.
Execute an action on the controller.
Handle calls to missing methods on the controller.
Dispatch the given event if listeners are registered.
Attempt to authenticate a new session using the two factor authentication code.
Determine if the request has a valid recovery code.
Details
in
Controller at line 21
ControllerMiddlewareOptions
middleware(Closure|array|string $middleware, array $options = [])
Register middleware on the controller.
in
Controller at line 36
array
getMiddleware()
Get the middleware assigned to the controller.
in
Controller at line 44
mixed
callAction(string $method, array $parameters)
Execute an action on the controller.
in
Controller at line 56
mixed
__call(string $method, array $parameters)
Handle calls to missing methods on the controller.
in
DispatchesEvents at line 16
protected void
dispatchIfListening(string $eventClass, Closure $event)
Dispatch the given event if listeners are registered.
at line 30
__construct(Container $container)
Create a new controller instance.
at line 38
TwoFactorChallengeViewResponse
create(TwoFactorLoginRequest $request)
Show the two factor authentication challenge view.
at line 50
Response|TwoFactorLoginResponse
store(TwoFactorLoginRequest $request)
Attempt to authenticate a new session using the two factor authentication code.
at line 80
protected bool
hasValidRecoveryCode(TwoFactorLoginRequest $request, Authenticatable&Model&TwoFactorAuthenticationUser $user)
Determine if the request has a valid recovery code.