|
|
@@ -171,7 +171,7 @@ class LoginForm extends Model
|
|
|
UserLoginLogger::success($this->_userInfo);
|
|
|
|
|
|
// 把用户的登录时间存在操作时间里
|
|
|
- Yii::$app->tokenRedis->hset('user-timeOut', $this->_userInfo['USER_ID'], time());
|
|
|
+ Yii::$app->tokenRedis->hset('user:timeOut', $this->_userInfo['USER_ID'], time());
|
|
|
|
|
|
return Yii::$app->user->loginWithUAndP($this->_user);
|
|
|
}catch(\Exception $e){
|