feat: harden admin auth and ticket workflows
- add rotating admin refresh tokens and password gates\n- expand ticket galleries, exports, and client resources\n- improve IP allocation auditing and dashboard data\n- enforce encrypted client access tokens on public routes
This commit is contained in:
@@ -18,6 +18,7 @@ Route::prefix('settings')
|
||||
->controller(AdminSettingController::class)
|
||||
->middleware('perm:setting.manager')
|
||||
->group(function () {
|
||||
Route::post('verify-password', 'verifyPassword')->middleware('throttle:10,1');
|
||||
Route::get('/', 'index');
|
||||
Route::put('/', 'update');
|
||||
Route::post('test-telegram', 'testTelegram');
|
||||
@@ -112,6 +113,8 @@ Route::prefix('tickets')
|
||||
->controller(AdminTicketController::class)
|
||||
->group(function () {
|
||||
Route::get('/', 'index')->middleware('perm:support.view');
|
||||
Route::get('pending-count', 'pendingCount')->middleware('perm:support.view');
|
||||
Route::get('export', 'export')->middleware('perm:support.view');
|
||||
Route::get('{ticket_num}', 'show')->middleware('perm:support.view');
|
||||
Route::patch('{ticket_num}/status', 'updateStatus')->middleware('perm:support.edit');
|
||||
Route::post('{ticket_num}/reply', 'reply')->middleware('perm:support.edit');
|
||||
|
||||
Reference in New Issue
Block a user