mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 访问授权重定向
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user