From aa92f0aa525b5bd2f192bdc3214699620e04b92a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=B9=8F?= Date: Fri, 15 Jul 2022 17:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=95=E7=82=B9=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/base/service/sys/login.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/base/service/sys/login.ts b/src/modules/base/service/sys/login.ts index 6edabce..32720ed 100644 --- a/src/modules/base/service/sys/login.ts +++ b/src/modules/base/service/sys/login.ts @@ -226,6 +226,10 @@ export class BaseSysLoginService extends BaseService { `admin:passwordVersion:${decoded['userId']}`, decoded['passwordVersion'] ); + await this.cacheManager.set( + `admin:token:${decoded['userId']}`, + result.token + ); return result; } } catch (err) {