Login Page Credentital verification issue

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 !

system.perspective.navigate(page = "ForgotPassword")

Its scope perspective

system.gui.errorBox("Incorrect password")

Its scope vision

I think, valid must be False. Its trying to execute else script but you are running above script in perspective so nothing works.

1 Like

Thank you for your reply. Now issue is resolved