I am creating simple login. Here I need to verify the username and password against my CoreIDp i have created in gateway. I have created the script in mouse clicked event in perspective. Below is script.
username=self.getSibling("TextField_Email").props.text
password=self.getSibling("TextField_Password").props.text
valid=system.security.validateUser(username, password, Template_user)
if valid:
system.perspective.navigate(page = "ForgotPassword")
else:
system.gui.errorBox("Incorrect password")
But nothing works.Kindly help me with this simple issue i am not aware of !