feat: 配置优化梳理
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user