mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-27 10:33:44 +02:00
Block API access when 2FA is required on account; closes #2791
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
<?php
|
||||
|
||||
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
|
||||
|
||||
Route::get('/', 'IndexController@index')->name('index')->fallback();
|
||||
Route::get('/account', 'IndexController@index')->name('account');
|
||||
Route::get('/account', 'IndexController@index')
|
||||
->withoutMiddleware(RequireTwoFactorAuthentication::class)
|
||||
->name('account');
|
||||
|
||||
Route::get('/locales/{locale}/{namespace}.json', 'LocaleController')
|
||||
->withoutMiddleware(RequireTwoFactorAuthentication::class)
|
||||
->where('namespace', '.*');
|
||||
|
||||
Route::get('/{react}', 'IndexController@index')
|
||||
|
||||
Reference in New Issue
Block a user