composer: update dependencies

This commit is contained in:
Matthew Penner 2022-12-14 18:41:39 -07:00
parent a24c594cbd
commit 160c3ddeff
No known key found for this signature in database
7 changed files with 176 additions and 304 deletions

View file

@ -5,7 +5,6 @@ namespace Pterodactyl\Http\Middleware;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Pterodactyl\Models\User;
use Prologue\Alerts\AlertsMessageBag;
use Pterodactyl\Exceptions\Http\TwoFactorAuthRequiredException;
class RequireTwoFactorAuthentication
@ -19,13 +18,6 @@ class RequireTwoFactorAuthentication
*/
protected string $redirectRoute = '/account';
/**
* RequireTwoFactorAuthentication constructor.
*/
public function __construct(private AlertsMessageBag $alert)
{
}
/**
* Check the user state on the incoming request to determine if they should be allowed to
* proceed or not. This checks if the Panel is configured to require 2FA on an account in
@ -66,8 +58,6 @@ class RequireTwoFactorAuthentication
throw new TwoFactorAuthRequiredException();
}
$this->alert->danger(trans('auth.2fa_must_be_enabled'))->flash();
return redirect()->to($this->redirectRoute);
}
}