$label) if (Auth::method_is_enabled($method)) $display_other_methods[$method] = $label; if ( !$user && isset($_REQUEST['method']) && array_key_exists($_REQUEST['method'], $display_other_methods) ) { $user = Auth :: login($_REQUEST['method'], $_REQUEST['method']); } if ($user) Url :: redirect(isset($_REQUEST['next'])?urldecode($_REQUEST['next']):null); else Tpl :: assign('next', (isset($_REQUEST['next'])?urldecode($_REQUEST['next']):'')); Tpl :: assign('display_other_methods', $display_other_methods); Tpl :: display('login.tpl', I18n::_('Sign in')); } /** * Logged in hook * @param \EesyPHP\HookEvent $event * @return void */ public static function logged_in_hook($event) { if ($event->method == 'Form' && isset($_REQUEST['next'])) Url :: redirect(urldecode($_REQUEST['next'])); } }