Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking Password Format
Message
 
 
To
29/05/2014 16:14:15
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01600934
Message ID:
01600939
Views:
68
>All,
>
>I would like have my users to create their passwords in the following format:
>
>
>
>How do I check to see if their passwords meet the criteria once they create and/or change their passwords?
>
>•be at least 10 characters

LEN(m.lcPassword) >=10


>•contain at least 2 special characters: ! @ # $ % ^ & * _ - + = ' : ; . ,
lcPassword = 'password;;;'
lcSpecialChars = "!@#$%^&*-+=':;.,"
?CHRTRAN(m.lcpassword, m.lcspecialchars, ''),m.lcspecialchars,'')
?CHRTRAN(CHRTRAN(m.lcpassword, m.lcspecialchars, ''),m.lcspecialchars,'')
LEN(m.lcPassword) - LEN(CHRTRAN(CHRTRAN(m.lcpassword, m.lcspecialchars, ''),m.lcspecialchars,'')) >=2 && at least two special chars
>•contain at least 2 numbers
lcPassword = 'password;;;'
lcDigits = "0123456789"
?CHRTRAN(m.lcpassword, m.lcDigits, ''),m.lcDigits,'')

LEN(m.lcPassword) - LEN(CHRTRAN(CHRTRAN(m.lcpassword, m.lcDigits, ''),m.lcDigits,'')) >=2 && at least two digits
>•contain at least 2 uppercase and 2 lowercase letters

similar way

>•not be an old password

Need to store encrypted original password and compare
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform