mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-24 09:13:45 +02:00
Block API access when 2FA is required on account; closes #2791
This commit is contained in:
@@ -84,6 +84,12 @@ class Kernel extends HttpKernel
|
||||
SubstituteClientApiBindings::class,
|
||||
'api..key:' . ApiKey::TYPE_ACCOUNT,
|
||||
AuthenticateIPAccess::class,
|
||||
// This is perhaps a little backwards with the Client API, but logically you'd be unable
|
||||
// to create/get an API key without first enabling 2FA on the account, so I suppose in the
|
||||
// end it makes sense.
|
||||
//
|
||||
// You just wouldn't be authenticating with the API by providing a 2FA token.
|
||||
RequireTwoFactorAuthentication::class,
|
||||
],
|
||||
'daemon' => [
|
||||
SubstituteBindings::class,
|
||||
|
||||
Reference in New Issue
Block a user