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

Don't send auth when both user and pass are empty #566

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

antoniomika
Copy link
Contributor

Don't send auth when both user and pass are empty.

When using an SMTP relay (such as Google's SMTP Relay, PLAIN auth is still sent by nodemailer even if the user/pass are empty.

This PR changes the logic to only include the fields when one of the fields has data, otherwise it should be undefined.

@github-actions github-actions bot added the ztnet Main Application label Sep 30, 2024
@@ -24,7 +24,7 @@ services:
volumes:
- .:/workspaces:cached
environment:
NEXTAUTH_URL: "http://10.0.0.217:3000" # Update this to the URL of your dev environment
NEXTAUTH_URL: "${NEXTAUTH_URL:-http://10.0.0.217:3000}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change was to ensure dev container development works properly.

@sinamics sinamics merged commit 01e9c08 into sinamics:main Oct 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ztnet Main Application
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants