activate otp

This commit is contained in:
2026-02-16 09:38:28 +03:30
parent ee6e989396
commit 77a584bf43
+2 -2
View File
@@ -52,9 +52,9 @@ export class AuthService {
const key = isAdmin ? this.adminOtpKey(slug, normalizedPhone) : this.userOtpKey(slug, normalizedPhone); const key = isAdmin ? this.adminOtpKey(slug, normalizedPhone) : this.userOtpKey(slug, normalizedPhone);
await this.cacheService.set(key, code, this.OTP_EXPIRATION_TIME); await this.cacheService.set(key, code, this.OTP_EXPIRATION_TIME);
// await this.smsService.sendotp(normalizedPhone, code); await this.smsService.sendotp(normalizedPhone, code);
return { code }; return { code: null };
} }
async verifyOtp(phone: string, slug: string, code: string) { async verifyOtp(phone: string, slug: string, code: string) {