Client-side validation of OTP field on login form #1152
Labels
EasyFix
Good for newcomers
enhancement
New feature or request
S
Small (~5 hours of work)
UX
User experience
pattern
attribute can be set for client-side validation (depending on browser support).For example
pattern="\d{6}"
for 6-digit OTPs (I'm not sure what types of OTP are supported by noggin). The form submission will be blocked if the input does not match the pattern.If the user mis-types the OTP, this saves them from having to re-fill the username and password if they had submitted and failed the server-side validation.
Screenshot showing client-side validation of OTP field in Firefox, preventing submission of wrong OTP:
The text was updated successfully, but these errors were encountered: