Remove email parameter from resendOtpHelper and normalize email addresses to lowercase in the resend OTP handler for consistent processing.

This commit is contained in:
2025-12-08 15:25:21 +05:30
parent d5d6951e64
commit 1a520ae9e1
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,6 @@ export interface OtpResult {
export async function resendOtpHelper(
prisma: any,
userId: number,
email: string,
emailPurpose: "Register" | "Login" | "ForgotPassword",
otpLength: 4 | 6 = 4,
expiryMinutes: number = 5