mirror of https://github.com/allinssl/allinssl
fix
parent
211eae4967
commit
14bcf412cd
|
@ -91,8 +91,8 @@ func SessionAuthMiddleware() gin.HandlerFunc {
|
||||||
session.Set("secure", true)
|
session.Set("secure", true)
|
||||||
session.Set("login", nil)
|
session.Set("login", nil)
|
||||||
session.Save()
|
session.Save()
|
||||||
// c.JSON(http.StatusUnauthorized, gin.H{"message": "登录信息发生变化,请重新登录"})
|
c.JSON(http.StatusUnauthorized, gin.H{"message": "登录信息发生变化,请重新登录"})
|
||||||
c.Redirect(http.StatusFound, "/login")
|
// c.Redirect(http.StatusFound, "/login")
|
||||||
c.Abort()
|
c.Abort()
|
||||||
} else {
|
} else {
|
||||||
// 访问正常,更新最后请求时间
|
// 访问正常,更新最后请求时间
|
||||||
|
|
Loading…
Reference in New Issue