-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
Don't pass invalid auth method "None" to net-smtp #12384
Conversation
It's our magic word to not pass username and password on.
Instead of using the auth method name, let's just not supply username and password when we don't want to authenticate. The two affected servers AU and CA don't have credentials set anyway. This is compatible. The specs needed changing though.
We were always adding this option anyway, so why not declare it to start with?
We can simply merge the option hashes now because they are not conditional anymore. Well, the magic `presence` method does the conditional logic for us now.
Best viewed with whitespace ignored.
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.
Nice one, It's always nice to see the code simplified.
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.
Great, thanks for fixing this.
It's nice how improving code creates opportunity to simplify it further, thanks for going ahead and cleaning up so much! 😀
I'll go ahead and test this so it can be included in the release. |
Had to fix separate unrelated issues on each staging server. au_staginghttps://staging.openfoodnetwork.org.au/admin/mail_methods/edit > Send test email
uk_stagingBroken, try another fr_stagingSeems a bit unhealthy
|
fr_staging
✅ Successfully received. No Bugsnag errors. Email source:
|
What? Why?
The indirect dependency net-smtp introduced a new check on authentication methods. Suddenly it raised an error on our non-standard auth method "None" which indicates not to authenticate.
What should we test?
Release notes
Changelog Category (reviewers may add a label for the release notes):
The title of the pull request will be included in the release notes.
Dependencies
Documentation updates