|
@@ -533,13 +533,13 @@ func (this *UserLoginController) Login() {
|
|
|
noTrustLoginId, _ := utils.Rc.RedisString(noTrustLoginKey)
|
|
|
if noTrustLoginId != `` {
|
|
|
oldNoTrustLoginKey := fmt.Sprint(utils.CACHE_ACCESS_TOKEN_LOGIN, noTrustLoginId)
|
|
|
- _ = utils.Rc.Put(oldNoTrustLoginKey, "0", 30*time.Minute)
|
|
|
+ _ = utils.Rc.Put(oldNoTrustLoginKey, "0", utils.LoginCacheTime*time.Minute)
|
|
|
}
|
|
|
|
|
|
|
|
|
loginKey := fmt.Sprint(utils.CACHE_ACCESS_TOKEN_LOGIN, sysSession.Id)
|
|
|
- _ = utils.Rc.Put(loginKey, "1", 30*time.Minute)
|
|
|
- _ = utils.Rc.Put(noTrustLoginKey, sysSession.Id, 30*time.Minute)
|
|
|
+ _ = utils.Rc.Put(loginKey, "1", utils.LoginCacheTime*time.Minute)
|
|
|
+ _ = utils.Rc.Put(noTrustLoginKey, sysSession.Id, utils.LoginCacheTime*time.Minute)
|
|
|
}
|
|
|
|
|
|
|