|
@@ -610,6 +610,7 @@ func (f *Front) HasSign() error {
|
|
|
"s_headimage": f.GetSession("s_avatar"),
|
|
|
"encryptId": se.EncodeString(userId),
|
|
|
}
|
|
|
+ //是否需要重新登录,企业基础架构给虚拟账号重置密码后,需要重新登录
|
|
|
if resetpwd, _ := redis.Exists("other", "resetpwd_"+userId); resetpwd {
|
|
|
redis.Del("other", "resetpwd_"+userId)
|
|
|
redis.Del("session", f.Session().Id())
|
|
@@ -779,8 +780,8 @@ func CreateSession(q map[string]interface{}, sess *httpsession.Session, typ stri
|
|
|
if person == nil {
|
|
|
return false, nil, nil
|
|
|
}
|
|
|
+ userid := util.ObjToString(sessionVal["userId"])
|
|
|
if pcSessionFlag, ok := config.Sysconfig["pcSessionFlag"].(bool); pcSessionFlag && ok && flag {
|
|
|
- userid := util.ObjToString(sessionVal["userId"])
|
|
|
//无限制登陆用户
|
|
|
if util.IntAll(sessionVal["i_unlimited"]) <= 0 {
|
|
|
redis.Put("other", jyutil.LoginRedisKey(userid), sess.Id(), 3600*util.IntAllDef(config.Sysconfig["pcSessionTimeout"], 168))
|
|
@@ -800,6 +801,8 @@ func CreateSession(q map[string]interface{}, sess *httpsession.Session, typ stri
|
|
|
}
|
|
|
//大会员动画 清除首页缓存
|
|
|
redis.Del("other", "jypcindex")
|
|
|
+ //清除企业基础架构给虚拟账号重置密码后需要重新登录的标识
|
|
|
+ redis.Del("other", "resetpwd_"+userid)
|
|
|
return true, person, infoData
|
|
|
}
|
|
|
|