Password Validation using HTML5


#1

Hi, I am an application developer. While working on a project, I faced an issue related to validating password with regular expressions using JavaScript. I hope any tech developer may help me in resolving this issue. I have also figure out many mobile development forum to enhance my android & IOS programming knowledge & it's a great experience to learn skills from there.


#2

the <input type="password"> offers great possibility, best to my knowledge, not yet validation of password

there is a maxlength attribute, you can find the full list here

i do hope you do server side validation besides the client side validation, please tell me you do?


#3

The pattern attribute may help you validate their password client side, but like @stetim94 said, it's good to validate it on the server too, just in case :slight_smile:


#4

from MDN:
The regular expression language is the same as JavaScript RegExp algorithm

so then it is very similar to js?

not just in case, you should do this, only client side validation is a security joke


#5

@stetim94 Correct, it's a JS regular expression, inside the attribute.


#6

A post was split to a new topic: Function call


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.