get config for admin interface
This commit is contained in:
		
							parent
							
								
									ac92e048fb
								
							
						
					
					
						commit
						82bb3674fd
					
				| 
						 | 
					@ -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;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue