mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-12 09:40:10 +08:00
修复修改账号密码后需要重新从安全入口访问
This commit is contained in:
@@ -88,6 +88,7 @@ func SessionAuthMiddleware() gin.HandlerFunc {
|
|||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
if session.Get("__login_key") != public.GetSettingIgnoreError("login_key") {
|
if session.Get("__login_key") != public.GetSettingIgnoreError("login_key") {
|
||||||
|
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": "登录信息发生变化,请重新登录"})
|
||||||
|
|||||||
Reference in New Issue
Block a user