Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/inc/lib/hook/interfaces/HookConditionalLoginObserve...

24 lines
723 B

<?php
/* For licensing terms, see /license.txt */
/**
* Interface HookConditionalLoginObserverInterface.
*/
interface HookConditionalLoginObserverInterface extends HookObserverInterface
{
/**
* Return an associative array (callable, url) needed for Conditional Login.
* <code>
* [
* 'conditional_function' => function (array $userInfo) {},
* 'url' => '',
* ]
* </code>
* conditional_function returns false to redirect to the url and returns true to continue with the classical login.
*
* @param HookConditionalLoginEventInterface $hook
*
* @return array
*/
public function hookConditionalLogin(HookConditionalLoginEventInterface $hook);
}