Logs a user in, no redirects.
AftersuccessfulLogin event is called if the second parameter is set to true.
This function does not work with Active Directory or Facebook login.
Syntax
Security_loginAs(username, callEvent)
Arguments
username
name of the user to be logged in.
callEvent
optional. AftersuccessfulLogin event will be called if the second parameter is set to true or omitted.
Return value
No return value.
Example
Authorize the current user:
username = "User"
Security_loginAs(username, true)
See also: