This commit is contained in:
Liang Ding 2023-02-28 09:20:43 +08:00
parent aa97f0df87
commit b03dbfcf27
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -204,7 +204,7 @@ func CheckAuth(c *gin.Context) {
}
}
if strings.HasSuffix(c.Request.RequestURI, "/check-auth") {
if "/check-auth" == c.Request.URL.Path { // 跳过访问授权页
c.Next()
return
}
@ -228,11 +228,5 @@ func CheckAuth(c *gin.Context) {
return
}
if u := c.Query("url"); "" != u {
c.Redirect(302, u)
c.Abort()
return
}
c.Next()
}