Question 


What is $t->runLoginStatusInteraction();


Answer 


$t->runLoginStatusInteraction();

$t-> runLoginStatusInteraction()

Description #

This function will execute the MADL code defined inside the LOGIN STATUS Interaction of a Custom Authentication Process. It's more convenient, because you don't need to specify the Interaction's name, it works it out based on your answerSpace configuration. It's useful because it returns exactly what the LOGIN STATUS Interaction would return (either the Boolean false, or an array of user details). If the Interaction you are currently working on needs to behave differently if the user is not logged in, then you can use this function to quickly check.

Parameters #

None

Return Values#

return (either the Boolean false, or an array of user details).


Examples #

$account = $t->runLoginStatusInteraction();