fix: bug in the sliders and blog module
This commit is contained in:
@@ -16,7 +16,7 @@ export class OTPService {
|
||||
async generateAndSetInCache(identifier: string, cacheKey: OtpCacheKeyType) {
|
||||
const otp = this.generateOTP();
|
||||
const key = `${identifier}:${cacheKey}:OTP`;
|
||||
await this.cacheService.set(key, otp);
|
||||
await this.cacheService.set(key, otp, 180 * 1000);
|
||||
return otp;
|
||||
}
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user