mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-04 14:22:00 +01:00
41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\Auth;
|
||
|
|
||
|
use App\Http\Controllers\Controller;
|
||
|
use App\Providers\RouteServiceProvider;
|
||
|
use DarkGhostHunter\Larapass\Http\ConfirmsWebAuthn;
|
||
|
|
||
|
class WebAuthnConfirmController extends Controller
|
||
|
{
|
||
|
use ConfirmsWebAuthn;
|
||
|
|
||
|
/*
|
||
|
|--------------------------------------------------------------------------
|
||
|
| Confirm Device Controller
|
||
|
|--------------------------------------------------------------------------
|
||
|
|
|
||
|
| This controller is responsible for handling WebAuthn confirmations and
|
||
|
| uses a simple trait to include the behavior. You're free to explore
|
||
|
| this trait and override any functions that require customization.
|
||
|
|
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Where to redirect users when the intended url fails.
|
||
|
*
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $redirectTo = RouteServiceProvider::HOME;
|
||
|
|
||
|
/**
|
||
|
* Create a new controller instance.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function __construct()
|
||
|
{
|
||
|
$this->middleware('auth');
|
||
|
$this->middleware('throttle:10,1')->only('options', 'confirm');
|
||
|
}
|
||
|
}
|