feat: change length otp checker
parent
3661d9d171
commit
a1ed81eec5
|
@ -50,9 +50,8 @@ export class OtpService {
|
||||||
this.hasRepeatedDigits(otp) ||
|
this.hasRepeatedDigits(otp) ||
|
||||||
this.isPalindrome(otp) ||
|
this.isPalindrome(otp) ||
|
||||||
this.hasPartiallyRepeatedDigits(otp) ||
|
this.hasPartiallyRepeatedDigits(otp) ||
|
||||||
otp?.split('')?.length < this.otpLength
|
otp?.length < this.otpLength
|
||||||
);
|
);
|
||||||
|
|
||||||
return otp;
|
return otp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue