登录验证
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
return [
|
||||
'secret' => getenv('JWT_SECRET_KEY'), // 替换为高强度的密钥
|
||||
'algorithm' => getenv('JWT_ALGORITHM'), // 加密算法
|
||||
'expire' => getenv('JWT_EXPIRATION'), // 过期时间
|
||||
];
|
||||
@@ -23,6 +23,7 @@ return [
|
||||
app\middleware\Lang::class
|
||||
],
|
||||
'console' => [
|
||||
app\middleware\Lang::class
|
||||
app\middleware\Lang::class,
|
||||
app\middleware\ConsoleAuthMiddleware::class,
|
||||
]
|
||||
];
|
||||
@@ -120,6 +120,8 @@ Route::group('/applet', function() {
|
||||
|
||||
// ====== ====== ====== 后台管理 ====== ====== ======
|
||||
Route::group('/console', function() {
|
||||
// 协议管理
|
||||
Route::any('/user/login', [\app\console\controller\AdminsController::class, 'login']);
|
||||
// 协议管理
|
||||
Route::any('/agt/list', [\app\console\controller\AgreementController::class, 'index']);
|
||||
Route::any('/agt/add', [\app\console\controller\AgreementController::class, 'add']);
|
||||
|
||||
Reference in New Issue
Block a user