diff --git a/src/i18n/en/auth.json b/src/i18n/en/auth.json index e6ac93a..c805862 100644 --- a/src/i18n/en/auth.json +++ b/src/i18n/en/auth.json @@ -5,6 +5,7 @@ "otp": "Otp" }, "errors": { + "otpAlreadySent": "OTP already sent. Please try again in 1 minute.", "wrongPhoneOrPass": "Entered phone number or password is wrong.", "unauthorized": "Unauthorized access", "tokenReuse": "Token reuse detected.", diff --git a/src/i18n/fa/auth.json b/src/i18n/fa/auth.json index 983cdec..1a9582e 100644 --- a/src/i18n/fa/auth.json +++ b/src/i18n/fa/auth.json @@ -5,6 +5,7 @@ "otp": "کد تایید" }, "errors": { + "otpAlreadySent": "کد تایید قبلا ارسال شده. لطفا دقایقی دیگر مجددا امتحان کنید.", "wrongPhoneOrPass": "شماره موبایل یا رمز عبور اشتباه است.", "unauthorized": "دسترسی غیر مجاز", "tokenReuse": "توکن قبلا استفاده شده.", diff --git a/src/modules/auth/providers/login.provider.ts b/src/modules/auth/providers/login.provider.ts index 5235ec0..a390fea 100644 --- a/src/modules/auth/providers/login.provider.ts +++ b/src/modules/auth/providers/login.provider.ts @@ -51,12 +51,10 @@ export class LoginProvider { return { message, - data: { - newUser: true, - otpExpiresAt: otpCode.expiresAt, - // Just for development - code: otpCode.code, - }, + newUser: true, + otpExpiresAt: otpCode.expiresAt, + // Just for development + code: otpCode.code, }; }