You are here

protected function SocialAuthUserManager::userPassword in Social Auth 8

Wrapper for user_password.

We need to wrap the legacy procedural Drupal API functions so that we are not using them directly in our own methods. This way we can unit test our own methods.

Parameters

int $length: Length of the password.

Return value

string The password.

See also

user_password

1 call to SocialAuthUserManager::userPassword()
SocialAuthUserManager::getUserFields in src/SocialAuthUserManager.php
Returns an array of fields to initialize the creation of the user.

File

src/SocialAuthUserManager.php, line 704

Class

SocialAuthUserManager
Contains all logic that is related to Drupal user management.

Namespace

Drupal\social_auth

Code

protected function userPassword($length) {
  return user_password($length);
}