/* Translation of cookie-warning. Whether to display it, is determined by JavaScript */
$smarty->assign('cookies','<b>'._('Warning').':</b> '._('Your browser has cookies disabled. Please enable cookies and reload this page before logging in!'));
static::displayLogin();
}
/*! \brief Called after successful login, return FALSE if account is expired */
staticfunctionsecondFactorAuth()
/*! \brief Checks if connected user has second factor active */
staticfunctionhasSecondFactor():bool
{
global$ui,$config,$plist,$message,$smarty;
global$ui,$config;
$ldap=$config->get_ldap_link();
$ldap->cat($ui->dn,['fdWebauthnRegistrations']);
$attrs=$ldap->fetch();
if(!$attrs){
$message=_('Could not fetch user');
returnFALSE;
thrownewFusionDirectoryException(_('Could not fetch user'));