修复单点登录

This commit is contained in:
小鹏 2022-07-15 17:53:04 +08:00
parent 33335c9523
commit aa92f0aa52

View File

@ -226,6 +226,10 @@ export class BaseSysLoginService extends BaseService {
`admin:passwordVersion:${decoded['userId']}`, `admin:passwordVersion:${decoded['userId']}`,
decoded['passwordVersion'] decoded['passwordVersion']
); );
await this.cacheManager.set(
`admin:token:${decoded['userId']}`,
result.token
);
return result; return result;
} }
} catch (err) { } catch (err) {