|
| Iniciado por guest, 06,feb. 2015 11:21 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 06,febrero 2015 - 11:21 |
Hi I need to check a password against a policy like this 8 characters minimum 1 Digit 1 Capital
I can of course write a simple routine for this particular situation But maybe there's a library or some other shared code already out there, to handle other requirements as well? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 06,febrero 2015 - 19:16 |
Hi Arie
I think you can code it quite easily with CharactTypeOccurrence()
Something like if CharactTypeOccurrence(sPass,ctAlpha) >= 8 and CharactTypeOccurrence(sPass,ctNumeric) >= 1 and CharactTypeOccurrence(sPass,ctUppercase) >= 1 then //you'r valid. end
Best regards Viggo Poulsen |
| |
| |
| | | |
|
| | |
| |
| Publicado el 06,febrero 2015 - 19:19 |
Arie,
Regular Expressions are your friend here I think... <a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.pcsoft.fr/en-US/?3024032&name=MatchRegularExpression">http://doc.pcsoft.fr/en-US/?3024032&name=MatchRegularExpression</a> |
| |
| |
| | | |
|
| | |
| |
| Publicado el 06,febrero 2015 - 21:38 |
omg I just wrote a CharactTypeOccurrence() myself :rolleyes: Of course WD already had one |
| |
| |
| | | |
|
| | | | |
| | |
|