Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to check the password and conform password by using javascript
but i want to check this by textchanged event of conformPassword text box
Posted
Comments
Ranjan.D 11-Nov-13 11:42am    
Did you meant verify password and make sure they are matching before you submit form ?

1 solution

I would strongly suggest that you don't do that. Check and confirm passwords in the code behind, so that valid password values never have to leave the server - that way, they can't be seen.

If you match a password value in javascript, you have to send the valid value and the code to compare it to the client in a human readable form - and a heck of a lot of people know how to view the source for a web page...
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Nov-13 11:47am    
Of course, a 5.
The next step is: a password is never stored anywhere and never sent via network, it is absolutely no needed for authentication.
Most typically, cryptographic hash is used.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900