ASP: Password Validation

  • mykule
  • Born
  • Born
  • No Avatar
  • Joined: Aug 22, 2008
  • Posts: 4
  • Status: Offline

Post February 6th, 2009, 11:54 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 6th, 2009, 11:54 am

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: Bigwebmaster and 127 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.