public static function MoAuthLoginSettings::withValues in Google Authenticator / 2 Factor Authentication - 2FA 7
1 call to MoAuthLoginSettings::withValues()
- mo_auth_login_settings_submit in ./
mo_auth_login_settings.inc - Send support query.
File
- classes/
LoginSettings.php, line 44
Class
Code
public static function withValues($enable2Factor, $enforceInlineRegistration, $enableOTP_instead_password) {
$instance = new MoAuthLoginSettings();
$instance
->setEnable2Factor($enable2Factor);
$instance
->setEnforceInlineRegistration($enforceInlineRegistration);
$instance
->setEnableOTPinsteadPassword($enableOTP_instead_password);
return $instance;
}