ASP: Password Validation

  • mbenken
  • Newbie
  • Newbie
  • mbenken
  • Posts: 6

Post 3+ Months Ago

Hello,
In Classic ASP, I am looking for a way to implement password validation where it checks to see that the password entered is at least 8 characters, has at least 1 numeric character and at least 1 letter.

I have this code so far checking for the 8-character mininum:

if len(request.form("Password")) < 8 then
Session("ErrorMsg") = "Your password must be at least 8 characters<br>"

How can I add to this to check for the other criteria?

Thanks,
Michael
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 82 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.