feat: change length otp checker

pull/147/head
Firman Ramdhani 2025-06-10 13:20:53 +07:00
parent 3661d9d171
commit a1ed81eec5
1 changed files with 1 additions and 2 deletions

View File

@ -50,9 +50,8 @@ export class OtpService {
this.hasRepeatedDigits(otp) ||
this.isPalindrome(otp) ||
this.hasPartiallyRepeatedDigits(otp) ||
otp?.split('')?.length < this.otpLength
otp?.length < this.otpLength
);
return otp;
}
}