🎨 访问授权重定向

This commit is contained in:
Liang Ding 2023-02-27 10:55:38 +08:00
parent 7c11b2ec9b
commit 0a08db69ae
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -228,5 +228,11 @@ func CheckAuth(c *gin.Context) {
return
}
if u := c.Query("url"); "" != u {
c.Redirect(302, u)
c.Abort()
return
}
c.Next()
}