-
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 reset confirmation mail from occ stable10 #34154
Fix reset confirmation mail from occ stable10 #34154
Conversation
Original PR #34137 |
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.
LGTM
Leaving for @PVince81 to review/approve and decide when to merge to stable10
2fc7d63
to
2fe25c9
Compare
Codecov Report
@@ Coverage Diff @@
## stable10 #34154 +/- ##
===============================================
- Coverage 63.48% 45.18% -18.31%
===============================================
Files 1264 116 -1148
Lines 75152 11458 -63694
Branches 1286 1286
===============================================
- Hits 47711 5177 -42534
+ Misses 27065 5905 -21160
Partials 376 376
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## stable10 #34154 +/- ##
==============================================
+ Coverage 63.48% 63.48% +<.01%
- Complexity 19117 19121 +4
==============================================
Files 1264 1264
Lines 75175 75184 +9
Branches 1288 1288
==============================================
+ Hits 47723 47729 +6
- Misses 27074 27077 +3
Partials 378 378
Continue to review full report at Codecov.
|
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]>
2fe25c9
to
67ce367
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.
👍
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: