mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🎨 访问授权重定向
This commit is contained in:
parent
7c11b2ec9b
commit
0a08db69ae
1 changed files with 6 additions and 0 deletions
|
|
@ -228,5 +228,11 @@ func CheckAuth(c *gin.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if u := c.Query("url"); "" != u {
|
||||||
|
c.Redirect(302, u)
|
||||||
|
c.Abort()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
c.Next()
|
c.Next()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue