Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking Password Format
Message
 
 
À
29/05/2014 16:14:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01600934
Message ID:
01600939
Vues:
69
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform