hook to allow apps to modify login page, eg. for multifactor auth

This commit is contained in:
Ralf Becker 2019-09-04 15:15:18 +02:00
parent 3e38ce2268
commit b56c1ae856

View File

@ -268,6 +268,12 @@ class Login
// load jquery for login screen too
Api\Framework::includeJS('jquery', 'jquery');
// call hook to allow apps to modify login page, eg. for multifactor auth
Api\Hooks::process([
'location' => 'login_page',
'tmpl' => $tmpl,
], [], true);
$this->framework->render($tmpl->fp('loginout','login_form'),false,false);
}