BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
app.imagivibe.com
/
vendor
/
pragmarx
/
google2fa-laravel
/
src
📤 Upload
📝 New File
📁 New Folder
Close
Editing: Middleware.php
<?php namespace PragmaRX\Google2FALaravel; use Closure; use PragmaRX\Google2FALaravel\Support\Authenticator; class Middleware { public function handle($request, Closure $next) { $authenticator = app(Authenticator::class)->boot($request); if ($authenticator->isAuthenticated()) { return $next($request); } return $authenticator->makeRequestOneTimePasswordResponse(); } }
Save
Cancel