mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-01-30 05:24:53 +00:00
Redirect to / after logout so you aren't automatically logged back in
This commit is contained in:
@@ -117,7 +117,7 @@ func GetLogin(c *gin.Context) {
|
||||
func GetLogout(c *gin.Context) {
|
||||
httputil.DelCookie(c.Writer, c.Request, "user_sess")
|
||||
httputil.DelCookie(c.Writer, c.Request, "user_last")
|
||||
c.Redirect(303, "/login")
|
||||
c.Redirect(303, "/")
|
||||
}
|
||||
|
||||
func GetLoginToken(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user