feat: reset password function is ready

This commit is contained in:
RockYang
2023-11-22 18:00:45 +08:00
parent 61c6a6e7f3
commit 13fbbc190a
6 changed files with 161 additions and 7 deletions

View File

@@ -139,6 +139,7 @@ func corsMiddleware() gin.HandlerFunc {
func authorizeMiddleware(s *AppServer, client *redis.Client) gin.HandlerFunc {
return func(c *gin.Context) {
if c.Request.URL.Path == "/api/user/login" ||
c.Request.URL.Path == "/api/user/resetPass" ||
c.Request.URL.Path == "/api/admin/login" ||
c.Request.URL.Path == "/api/user/register" ||
c.Request.URL.Path == "/api/chat/history" ||