feat: 配置优化梳理

This commit is contained in:
tbphp
2025-07-11 21:23:56 +08:00
parent 1368792aa0
commit f655de3cda
20 changed files with 485 additions and 553 deletions

View File

@@ -78,14 +78,6 @@ func (s *Server) Login(c *gin.Context) {
authConfig := s.config.GetAuthConfig()
if !authConfig.Enabled {
c.JSON(http.StatusOK, LoginResponse{
Success: true,
Message: "Authentication disabled",
})
return
}
if req.AuthKey == authConfig.Key {
c.JSON(http.StatusOK, LoginResponse{
Success: true,