Skip to content

Reset user password send error when no user is found#271

Merged
schlessera merged 10 commits intowp-cli:masterfrom
raphael-concil:reset-password-invalid-user
Nov 12, 2019
Merged

Reset user password send error when no user is found#271
schlessera merged 10 commits intowp-cli:masterfrom
raphael-concil:reset-password-invalid-user

Conversation

@raphael-concil
Copy link
Contributor

This fixes issue #258
The success message was changed also to show the number of successful password reset. This was done to resolve the case when there are both valid and invalid users.

`
$ ./vendor/bin/wp user reset-password 0 invalid-user
Warning: Invalid user ID, email or login: '0'
Warning: Invalid user ID, email or login: 'invalid-user'
Error: No user found to reset password.

$ ./vendor/bin/wp user reset-password 0 invalid-user user1
Warning: Invalid user ID, email or login: '0'
Warning: Invalid user ID, email or login: 'invalid-user'
Reset password for user1.
Success: Password reset for 1 user.
`

zzap and others added 2 commits September 13, 2019 16:14
This fixes issue wp-cli#258
The success message was changed also to show the number of successful password reset. This was done to resolve the case when there are both valid and invalid users.
@raphael-concil raphael-concil requested a review from a team as a code owner October 18, 2019 19:47
thrijith and others added 8 commits November 4, 2019 20:39
Docs: Disable curl buffer for fetching content example
Fix minor PHPCS violation
This fixes issue wp-cli#258
The success message was changed also to show the number of successful password reset. This was done to resolve the case when there are both valid and invalid users.
Fix Travis space and quotes errors
@schlessera schlessera added bug command:user-reset-password Related to 'user reset-password' command labels Nov 12, 2019
@schlessera schlessera added this to the 2.0.7 milestone Nov 12, 2019
@schlessera
Copy link
Member

Thanks for the PR, @raphael-concil !

@schlessera schlessera merged commit 3c31e7e into wp-cli:master Nov 12, 2019
This was referenced Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug command:user-reset-password Related to 'user reset-password' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants