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

Email settings regression #4656

Closed
deanmarcussen opened this issue Oct 27, 2019 · 3 comments · Fixed by #4657
Closed

Email settings regression #4656

deanmarcussen opened this issue Oct 27, 2019 · 3 comments · Fixed by #4657

Comments

@deanmarcussen
Copy link
Member

The PR #4637 has a couple of issues

It overrides UI settings, if email settings are supplied via appsettings, with no notification to the user

It tries to decrypt a password with the dataprotector from appsettings, but the password in appsettings will be in plain text, so will throw an exception

It creates an ambiguity as to where email is configured.

I looked at the code that introduced email to appsettings, and think it was testing code from when workflows were introduced on #1378

The correct way to it, I believe, is to only configure email from settings UI, but if someone wants to override that for development with a setting from configuration, they should implement their own SmptOptions in their own startup to override the UI settings

@hishamco
Copy link
Member

IMHO we can try to solve the issues that you mention without reverting the entire PR

It overrides UI settings, if email settings are supplied via appsettings, with no notification to the user

We can show a warning alert in the admin that email settings will be ignored

It tries to decrypt a password with the dataprotector from appsettings, but the password in appsettings will be in plain text, so will throw an exception

I need to look to this one

It creates an ambiguity as to where email is configured.

The previous alert will clarify the things

@jtkech @sebastienros your thoughts

@sebastienros
Copy link
Member

Please revert the PR.

@hishamco
Copy link
Member

@sebastienros could we think about support both appsettings.json and admin settings for almost modules?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants