Password Check
Posted: Mon Apr 29, 2019 3:48 am
Good day, bellow is the code that I've used thus far to evaluate if the user has a password with special characters:
However, I'm trying to rewrite it to tell me what character was found within the user's password to make it true and how many special characters are within the password. :
Is there a way to return the variable that turned an if statement into true or false?
Code: Select all
put "`~!@#$%^&*()_-+=}{][|\<,>.?/" into tList175
if any char of tList175 is not in the text of field "RegisterPassword" then
answer "Please add a special character to your Password", "eg.`~!@#$%^&*()_-+=}{][|\<,>.?/"
put false into tPassCheck -- This means the password does not contain special characters
else
put true into tPassCheck
Code: Select all
on mouseUp
put "`~!@#$%^&*()_-+=}{][|\<,>.?/" into tList175
--if any char of tList175 is not in t1 then
if field "HELLO" contains any char of tList175 then
put it into t2
answer t2
else
answer "NOPE"
end if
end mouseUp