This function checks username and password and returns true if the username/password are correct, returns false otherwise.
If username/password are incorrect and fireEvents is set to true, ASPRunnerPro runs the AfterUnsuccessfulLogin event.
This function doesn't perform the authorization, just validates the username and password.
Syntax
Security_checkUsernamePassword(username, password, fireEvents)
Arguments
username
the username.
password
the user's password.
fireEvents = false
If username/password are incorrect and fireEvents is set to true, ASPRunnerPro runs the AfterUnsuccessfulLogin event.
Return value
true
if username/password are correct.
false
if username/password are not correct.
Example
This example shows how to output the current user data:
userData = Security_checkUsernamePassword(username, password, fireEvents)
response.write(userData)
Sample output
False
or
True
See also:
•Event: After Unsuccessful Login
•Security screen: Security settings