Block API access when 2FA is required on account; closes #2791
This commit is contained in:
parent
5d23d894ae
commit
d22456d9ca
8 changed files with 101 additions and 40 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue