Skip to content
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

Bug: User Upgrade Account Issue #599

Open
culbert opened this issue Feb 20, 2024 · 1 comment
Open

Bug: User Upgrade Account Issue #599

culbert opened this issue Feb 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@culbert
Copy link
Contributor

culbert commented Feb 20, 2024

What happened?

When one of our users requested an account upgrade, the underlying mail function returned an error. I expected an email to be successfully sent to our help desk.

The issue is that in core/user/views.py in the UserUpgradeAccount object's post method, the from argument used in the call to the send_email_template function specifies request.user.email. This is the email for the user requesting the upgrade. Unless the gateway used to send email is authorized to send mail for the request.user.email domain then the mail will fail to send.

You appear to handle this at other points in the code base by using the setting "EMAIL_SENDER" when sending email. I believe the same approach should be used here.

I'm patching around this issue in my production context with the attached patch.

view.patch.txt

Version

1.1.5

Component

Users

What browsers are you seeing the problem on?

Firefox

Relevant log output

No response

Tasks/ user tests when bug is fixed

  • [ ]
@culbert culbert added the bug Something isn't working label Feb 20, 2024
@dsajdak
Copy link
Contributor

dsajdak commented May 2, 2024

@culbert thanks for reporting this. It's not something we've hit before but can definitely fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants