protected function UserManager::userPassword in Social Auth 8.2
Same name and namespace in other branches
- 3.x src/User/UserManager.php \Drupal\social_auth\User\UserManager::userPassword()
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 UserManager::userPassword()
- UserManager::getUserFields in src/
User/ UserManager.php - Returns an array of fields to initialize the creation of the user.
File
- src/
User/ UserManager.php, line 559
Class
- UserManager
- Manages database related tasks.
Namespace
Drupal\social_auth\UserCode
protected function userPassword($length) {
return user_password($length);
}