NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: olu on November 14, 2012, 03:06:57 AM
-
hi all , please need help on creating a alpha-numeric check on password field, to ensure when users create their passwords it contain numbers and characters
-
Hallo Olu,
If you have StrigTheory there is a method "Random" that will do exactly what you need.
Regards,
Robert
-
Olu,
If you don't have and don't want to wait:
loop x# = 1 to len(clip(password))
if instring(password[x#],'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890',1,1)
cycle
else
!Fail Code
end
Cheers
Charl
-
Thanks Robert and Charl
as i do not have stringtheory i am going to try Charl's idea .
-
If you haven't realized, you will need to tweak Char's code a bit as it checks the pw only contains numbers *or* letters but not both.
-
Hi Kevin,
I am not so sure about that, it does not check for SPACES but it certainly check for characters _and_ numbers.
Cheers
Charl
-
I agree it checks for characters and numbers but maybe I misunderstood his original post as I thought he wanted to check the password contained *both* eg AAA111 not AAAAAA