auth clean up and redirect fixes

This commit is contained in:
2026-01-24 12:20:11 -07:00
parent e4069e18e2
commit 52b4d18236
4 changed files with 28 additions and 37 deletions
+2 -1
View File
@@ -81,7 +81,8 @@ func writeResponse(c *gin.Context, res Response) {
}
if code, to, ok := res.GetRedirect(); ok {
http.Redirect(w, c.Request, to, code.Int())
c.Redirect(code.Int(), to)
c.Abort()
return
}