-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix password reset confirmation email from occ #34137
Conversation
Codecov Report
@@ Coverage Diff @@
## master #34137 +/- ##
============================================
+ Coverage 64.76% 64.77% +<.01%
- Complexity 18345 18349 +4
============================================
Files 1198 1198
Lines 69450 69460 +10
Branches 1281 1281
============================================
+ Hits 44982 44992 +10
Misses 24095 24095
Partials 373 373
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #34137 +/- ##
============================================
+ Coverage 64.76% 64.77% +<.01%
- Complexity 18345 18349 +4
============================================
Files 1198 1198
Lines 69450 69460 +10
Branches 1281 1281
============================================
+ Hits 44982 44992 +10
Misses 24095 24095
Partials 373 373
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #34137 +/- ##
============================================
+ Coverage 64.76% 64.77% +<.01%
- Complexity 18347 18351 +4
============================================
Files 1198 1198
Lines 69454 69464 +10
Branches 1281 1281
============================================
+ Hits 44983 44993 +10
Misses 24098 24098
Partials 373 373
Continue to review full report at Codecov.
|
@sharidas I discovered that the acceptance test for this issue was not really demonstrating the issue. |
f28fa37
to
cdf7958
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjusted acceptance test passes, so that is "a good thing"
Fix password reset confirmation email from occ. This was missing when user:resetpassword command was used with options "--send-email --password-from-env". With this change set the issue is resolved. Signed-off-by: Sujith H <[email protected]>
cdf7958
to
2ab6f12
Compare
Current state of the PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@sharidas please backport |
Backport to stable10 PR #34154 |
Fix password reset confirmation email from occ.
This was missing when user:resetpassword command
was used with options "--send-email --password-from-env".
With this change set the issue is resolved.
Signed-off-by: Sujith H [email protected]
Description
When password for user is set using command
user:resetpassword
, with options--send-email --password-from-env
( apart from username ) , the password successful email is not sent. This is a minor issue though. In this PR an extra condition is added, so that password setting logic is routed to LostController'ssetPassword
, if--send-email
is used along with the optionpassword-from-env
. Care has also been taken to evaluate the return from LostControllerssetPassword()
method.Related Issue
Motivation and Context
An email will be triggered if the password change has been made for the user with the options ``--send-email --password-from-env
passed to command
user:resetpassword`.How Has This Been Tested?
user1
userScreenshots (if appropriate):
Types of changes
Checklist:
Open tasks: