You are here

public static function CredentialsStorage::storeUserPassword in Lightweight Directory Access Protocol (LDAP) 8.4

Same name and namespace in other branches
  1. 8.3 ldap_servers/src/Helper/CredentialsStorage.php \Drupal\ldap_servers\Helper\CredentialsStorage::storeUserPassword()

Stores the password from user input.

Parameters

string|null $password: Password to store.

3 calls to CredentialsStorage::storeUserPassword()
CredentialsStorageTest::testCredentialsStorage in ldap_servers/tests/src/Unit/CredentialsStorageTest.php
Test the temporary storage of passwords.
LdapProtectedUserFieldConstraintValidator::validate in ldap_user/src/Plugin/Validation/Constraint/LdapProtectedUserFieldConstraintValidator.php
Checks if the passed value is valid.
ldap_user_grab_password_validate in ldap_user/ldap_user.module
Alter password form through validation.

File

ldap_servers/src/Helper/CredentialsStorage.php, line 53

Class

CredentialsStorage
Temporarily stores credentials from user input.

Namespace

Drupal\ldap_servers\Helper

Code

public static function storeUserPassword(?string $password) : void {
  self::$userPassword = $password;
}