public function MoAuthLoginSettings::__construct in Google Authenticator / 2 Factor Authentication - 2FA 7
File
- classes/
LoginSettings.php, line 25
Class
Code
public function __construct() {
$this->enable2Factor = variable_get('mo_auth_enable_two_factor', TRUE);
$this->enforceInlineRegistration = variable_get('mo_auth_enforce_inline_registration', FALSE);
$this->enableOTP_instead_password = variable_get('mo_auth_two_factor_instead_password', FALSE);
$this->enablePasswordChecks = variable_get('mo_auth_enable_password_checks', FALSE);
$this->lastNUniquePassword = variable_get('mo_2fa_unique_password', 0);
$this->passwordMinLength = variable_get('mo_2fa_password_min_length', 5);
$this->passwordMaxLength = variable_get('mo_2fa_password_max_length', 10);
$this->passwordMustHaveLowChar = variable_get('mo_2fa_password_password_variation_low_char', TRUE);
$this->passwordMustHaveUpChar = variable_get('mo_2fa_password_password_variation_up_char', TRUE);
$this->passwordMustHaveNumChar = variable_get('mo_2fa_password_password_variation_num_char', TRUE);
$this->passwordMustHaveSpecialChar = variable_get('mo_2fa_password_password_variation_special_char', TRUE);
$this->passwordMustNotBeEmail = variable_get('mo_2fa_password_must_not_be_email', FALSE);
$this->passwordMustNotBeFname = variable_get('mo_2fa_password_must_not_be_firstname', FALSE);
$this->passwordMustNotBeLname = variable_get('mo_2fa_password_must_not_lastname', FALSE);
$this->machineNameOfFname = variable_get('mo_2fa_password_must_not_be_fname_text', '');
$this->machineNameOfLname = variable_get('mo_2fa_password_must_not_be_lname_text', '');
}