PasswordInterface::PASSWORD_MAX_LENGTH

Maximum password length. File core/lib/Drupal/Core/Password/PasswordInterface.php, line 13 Class PasswordInterface Secure password hashing functions for user authentication. Namespace Drupal\Core\Password Code const PASSWORD_MAX_LENGTH = 512;

PasswordInterface::needsRehash

public PasswordInterface::needsRehash($hash) Check whether a hashed password needs to be replaced with a new hash. This is typically called during the login process when the plain text password is available. A new hash is needed when the desired iteration count has changed by a modification of the password-service in the dependency injection container or if the user's password hash was generated in an update like user_update_7000() (see the Drupal 7 documentation). Parameters string $hash: The

PasswordInterface::hash

public PasswordInterface::hash($password) Hash a password using a secure hash. Parameters string $password: A plain-text password. Return value string A string containing the hashed password, or FALSE on failure. File core/lib/Drupal/Core/Password/PasswordInterface.php, line 24 Class PasswordInterface Secure password hashing functions for user authentication. Namespace Drupal\Core\Password Code public function hash($password);

PasswordInterface::check

public PasswordInterface::check($password, $hash) Check whether a plain text password matches a hashed password. Parameters string $password: A plain-text password string $hash: A hashed password. Return value bool TRUE if the password is valid, FALSE if not. File core/lib/Drupal/Core/Password/PasswordInterface.php, line 37 Class PasswordInterface Secure password hashing functions for user authentication. Namespace Drupal\Core\Password Code public function check($password, $hash);

PasswordInterface

Secure password hashing functions for user authentication. Hierarchy interface \Drupal\Core\Password\PasswordInterface File core/lib/Drupal/Core/Password/PasswordInterface.php, line 8 Namespace Drupal\Core\Password Members Name Modifiers Type Description PasswordInterface::check public function Check whether a plain text password matches a hashed password. PasswordInterface::hash public function Hash a password using a secure hash. PasswordInterface::needsRehas

PasswordConfirm::valueCallback

public static PasswordConfirm::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The value

PasswordConfirm::validatePasswordConfirm

public static PasswordConfirm::validatePasswordConfirm(&$element, FormStateInterface $form_state, &$complete_form) Validates a password_confirm element. File core/lib/Drupal/Core/Render/Element/PasswordConfirm.php, line 97 Class PasswordConfirm Provides a form element for double-input of passwords. Namespace Drupal\Core\Render\Element Code public static function validatePasswordConfirm(&$element, FormStateInterface $form_state, &$complete_form) { $pass1 = trim($elemen

PasswordConfirm::processPasswordConfirm

public static PasswordConfirm::processPasswordConfirm(&$element, FormStateInterface $form_state, &$complete_form) Expand a password_confirm field into two text boxes. File core/lib/Drupal/Core/Render/Element/PasswordConfirm.php, line 67 Class PasswordConfirm Provides a form element for double-input of passwords. Namespace Drupal\Core\Render\Element Code public static function processPasswordConfirm(&$element, FormStateInterface $form_state, &$complete_form) { $element

PasswordConfirm::getInfo

public PasswordConfirm::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/PasswordConfirm.php, line 31 Class PasswordConfirm Provides a form element for double-input of passwords. Namespace Drupal\Co

PasswordConfirm

Provides a form element for double-input of passwords. Formats as a pair of password fields, which do not validate unless the two entered passwords match. Usage example: $form['pass'] = array( '#type' => 'password_confirm', '#title' => $this->t('Password'), '#size' => 25, ); Plugin annotation @FormElement("password_confirm") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginB