Actualización
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function hookConditionalLogin(HookConditionalLoginEventInterface $hook);
|
||||
}
|
||||
Reference in New Issue
Block a user