You are here

function MoAuthPasswordValidator::passwordMustNotBeRules in Google Authenticator / 2 Factor Authentication - 2FA 7

File

classes/MoAuthPasswordValidator.php, line 74

Class

MoAuthPasswordValidator

Code

function passwordMustNotBeRules() {
  $loginSettings = new MoAuthLoginSettings();
  $rulesResult = array();
  if ($loginSettings
    ->getPasswordMustNotBeEnabled()) {
    $rules = explode(';', $loginSettings
      ->getPasswordMustNotBeRules());
    foreach ($rules as $rule) {
      $rulesResult[] = $this
        ->getRuleValue($rule);
    }
  }
  return $rulesResult;
}