server: fix expireTime

pull/115/head
fantasticit 2022-07-02 07:43:24 +08:00
parent 873c5a957f
commit 7be1b6cb9b
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export class VerifyService {
const verifyCode = randomInt(1000000).toString().padStart(6, '0');
await this.redis.set(`verify-${email}`, verifyCode, 'EX', 10);
await this.redis.set(`verify-${email}`, verifyCode, 'EX', 5 * 60);
await this.systemService.sendEmail({
to: email,
subject: '验证码',