← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #179195]: How to check the password given is matching with first and last name of the user at the time of registration.

 

Question #179195 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/179195

    Status: Open => Answered

RaiMan proposed the following answer:
xFirst = first.lower()
xLast = last.lower()
xPass = password.lower()

if xPass.count(xFirst) > 0:
     print "first name in password"
elif xPass.count(xLast) > 0:
    print "last name in password"
else:
    print "no first or last name in password"

recommendation: by yourself the O'Reillys Python Pocket Reference. It is
really nice and compact.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.