From 77a584bf43a25ad53a800ffe9d3ac72bbcb4fa02 Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Mon, 16 Feb 2026 09:38:28 +0330 Subject: [PATCH] activate otp --- src/modules/auth/services/auth.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/auth/services/auth.service.ts b/src/modules/auth/services/auth.service.ts index 6d08593..3f1cbc9 100644 --- a/src/modules/auth/services/auth.service.ts +++ b/src/modules/auth/services/auth.service.ts @@ -52,9 +52,9 @@ export class AuthService { const key = isAdmin ? this.adminOtpKey(slug, normalizedPhone) : this.userOtpKey(slug, normalizedPhone); 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) {