Skip to content
Permalink
Browse files Browse the repository at this point in the history
Generate random password for provisioned users
  • Loading branch information
pitbulk committed Jan 20, 2016
1 parent ff17916 commit fbe808e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onelogin-saml-sso/php/functions.php
Expand Up @@ -274,7 +274,7 @@ function saml_acs() {
echo __("The username provided by the IdP"). ' "'. $username. '" '. __("is not valid and can't create the user at wordpress");
exit();
}
$userdata['user_pass'] = '@@@nopass@@@';
$userdata['user_pass'] = wp_generate_password();
$user_id = wp_insert_user($userdata);
} else {
echo __("User provided by the IdP "). ' "'. $matcherValue. '" '. __("does not exist in wordpress and auto-provisioning is disabled.");
Expand Down

0 comments on commit fbe808e

Please sign in to comment.