mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-26 12:49:42 +02:00
Fix and complete reverse-proxy support & Adjust front-end views
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Http\Controllers\Auth;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Providers\RouteServiceProvider;
|
||||
use DarkGhostHunter\Larapass\Http\ConfirmsWebAuthn;
|
||||
use App\Exceptions\UnsupportedWithReverseProxyException;
|
||||
|
||||
class WebAuthnConfirmController extends Controller
|
||||
{
|
||||
@@ -35,7 +36,10 @@ class WebAuthnConfirmController extends Controller
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
$this->middleware('throttle:10,1')->only('options', 'confirm');
|
||||
$authGuard = config('auth.defaults.guard');
|
||||
|
||||
if ($authGuard === 'reverse-proxy-guard') {
|
||||
throw new UnsupportedWithReverseProxyException();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user