fix: fix bug for mobile verify code function not available in register page

This commit is contained in:
RockYang
2023-07-27 10:29:59 +08:00
parent f567831d92
commit 1a6afcd266
2 changed files with 4 additions and 0 deletions

View File

@@ -175,6 +175,7 @@ func authorizeMiddleware(s *AppServer) gin.HandlerFunc {
if c.Request.URL.Path == "/api/user/login" ||
c.Request.URL.Path == "/api/admin/login" ||
c.Request.URL.Path == "/api/user/register" ||
c.Request.URL.Path == "/api/sms/status" ||
strings.HasPrefix(c.Request.URL.Path, "/api/verify/") ||
strings.HasPrefix(c.Request.URL.Path, "/static/") ||
c.Request.URL.Path == "/api/admin/config/get" {