feat: 管理后台认证加固——改密即失效旧令牌/账号锁定/登录审计/release随机初始密码

This commit is contained in:
Logan.Li committed 2026-09-14 21:08:39 +08:00
1 parent b76111dfc3
commit 2f0cb71fc2
7 files changed
+127 -11

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ func SetupRouter(db *gorm.DB, cfg *config.Config) *gin.Engine {
}
// ============ 需要认证的管理路由 ============
protected := api.Group("", middleware.AuthMiddleware(cfg))
protected := api.Group("", middleware.AuthMiddleware(cfg, db))
{
// 认证相关
register(protected, "GET", "/auth/me", authController.Me)