get config for admin interface

This commit is contained in:
Roland Gruber 2017-02-11 19:54:57 +01:00
parent ac92e048fb
commit 82bb3674fd
1 changed files with 17 additions and 0 deletions

View File

@ -278,6 +278,23 @@ class TwoFactorProviderService {
return $config; return $config;
} }
/**
* Returns the configuration for admin interface.
*
* @param LAMConfig $conf configuration
* @return TwoFactorConfiguration configuration
*/
private function getConfigAdmin($conf) {
$config = new TwoFactorConfiguration();
$config->twoFactorAuthentication = $conf->getTwoFactorAuthentication();
$config->twoFactorAuthenticationCaption = $conf->getTwoFactorAuthenticationCaption();
$config->twoFactorAuthenticationInsecure = $conf->getTwoFactorAuthenticationInsecure();
$config->twoFactorAuthenticationLabel = $conf->getTwoFactorAuthenticationLabel();
$config->twoFactorAuthenticationOptional = $conf->getTwoFactorAuthenticationOptional();
$config->twoFactorAuthenticationURL = $conf->getTwoFactorAuthenticationURL();
return $config;
}
} }
/** /**