We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61a4557 commit 15ba4efCopy full SHA for 15ba4ef
middlewares/auth/auth.go
@@ -65,13 +65,13 @@ func authenticator(c *gin.Context) (interface{}, error) {
65
}
66
67
func loginResponse(c *gin.Context, code int, token string, expire time.Time) {
68
- c.Redirect(http.StatusMovedPermanently, "/")
+ c.Redirect(http.StatusFound, "/")
69
70
71
func logoutResponse(c *gin.Context, code int) {
72
- c.Redirect(http.StatusMovedPermanently, "/login")
+ c.Redirect(http.StatusFound, "/login")
73
74
75
func unauthorized(c *gin.Context, code int, message string) {
76
77
0 commit comments