Reset user password send error when no user is found#271
Merged
schlessera merged 10 commits intowp-cli:masterfrom Nov 12, 2019
Merged
Reset user password send error when no user is found#271schlessera merged 10 commits intowp-cli:masterfrom
schlessera merged 10 commits intowp-cli:masterfrom
Conversation
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.
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.
…ael-concil/entity-command into reset-password-invalid-user
Fix Travis space and quotes errors
schlessera
approved these changes
Nov 12, 2019
Member
|
Thanks for the PR, @raphael-concil ! |
This was referenced Dec 6, 2019
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
`