From 363e67277323838fb07043c593bb529a3e8d5959 Mon Sep 17 00:00:00 2001 From: phper08 Date: Wed, 28 Jun 2023 13:21:31 +0800 Subject: [PATCH] Update login.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改错误的注释 --- server/src/controller/api/login.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/controller/api/login.ts b/server/src/controller/api/login.ts index 01a7b22..38743b1 100644 --- a/server/src/controller/api/login.ts +++ b/server/src/controller/api/login.ts @@ -57,7 +57,7 @@ async function createCode(email: string) { async function createToken(email: string) { const randexp = new RandExp(/[a-zA-Z0-9]{22}/) const token = randexp.gen() - // 设置缓存, 10秒过期 + // 设置缓存, 1天过期 await RedisClient.set(token, email, 'EX', Token_expries) return token }