password_policy_pwned-8.x-1.0-beta2/src/PwnedPasswordsClientInterface.php

src/PwnedPasswordsClientInterface.php
<?php

namespace Drupal\password_policy_pwned;

/**
 * A client for querying the Pwned Password API.
 */
interface PwnedPasswordsClientInterface {

  /**
   * Gets the number of occurrences in HIBP.
   *
   * @param string $password
   *   The password to check.
   *
   * @return int
   *   The number of occurrences of the password in breaches.
   */
  public function getOccurrences($password);

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc