Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To include a Custom Authentication Process in your answerspace you first need to create two mADL interactions.

 

Interaction

 

loginstatus

mADL Interaction

 

 

Code Block
themeRDark
languagephp
titleloginstatus
linenumberstrue
 
 
// TODO: instead of pulling from $t->getSessionValue(), contact (web) service
// always return false if the user is not logged in
$account = $t->getSessionValue('account');
if (empty($account) || !is_array($account)) {
  return false;
} else {
  return $account;
}
/* example successful return
return array(
  'username' => 'user01',
  'name' => 'Bob', // [optional]
  'groups' => array() // Interaction Group IDs
);
*/

 


  • loginstatus
  • loginprompt