Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to apply a Validation In MVC that if user name and pwd is "ADMIN", then Login should not be there with "admin"... i want letter case validation in login password... tell me
Posted

I would suggest to save password as MD5. And check it each time user login into the system. This will increase the security and will solve your problem.
 
Share this answer
 
Regular expression Library[^]
Check here if you get your requirement.
But if you only want Capital letters, then you can use ASCII codes and check in the javascript and then allow the call to happen else show an alert or error message from the javascript itself.
Hope this helps
Thanks.:)
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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