private function LoginHandler::genPassword in Shibboleth Authentication 8
Generate a random password for the Drupal user account.
Return value
string
1 call to LoginHandler::genPassword()
- LoginHandler::registerNewUser in src/
Login/ LoginHandler.php - Adds user to the shib_auth table in the database.
File
- src/
Login/ LoginHandler.php, line 313
Class
- LoginHandler
- Class LoginHandler.
Namespace
Drupal\shib_auth\LoginCode
private function genPassword() {
$rand = new Random();
return $rand
->string(30);
}