Skip to content

Commit

Permalink
user_reset_password(): improve PHPDoc return value
Browse files Browse the repository at this point in the history
  • Loading branch information
dregad committed May 2, 2020
1 parent 49fc1ce commit 31aad39
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/user_api.php
Expand Up @@ -1719,12 +1719,11 @@ function user_set_name( $p_user_id, $p_username ) {
* - if it is ON, generate a random password and send an email
* (unless the second parameter is false)
* - if it is OFF, set the password to blank
* Return false if the user is protected, true if the password was
* successfully reset
*
* @param integer $p_user_id A valid user identifier.
* @param boolean $p_send_email Whether to send confirmation email.
* @return boolean
* @return boolean True if the password was successfully reset
* False if the user is protected.
* @throws ClientException
*/
function user_reset_password( $p_user_id, $p_send_email = true ) {
Expand Down

0 comments on commit 31aad39

Please sign in to comment.