Skip to content

Commit

Permalink
fix: add env var for smtp auth
Browse files Browse the repository at this point in the history
  • Loading branch information
ontehfritz committed Dec 19, 2024
1 parent a65a31c commit 72c7710
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/Bulwark.Auth/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ DB_NAME_SEED=
GOOGLE_CLIENT_ID=651882111548-0hrg7e4o90q1iutmfn02qkf9m90k3d3g.apps.googleusercontent.com
MICROSOFT_CLIENT_ID=3e3b3b3b-3b3b-3b3b-3b3b-3b3b3b3b3b3b
MICROSOFT_TENANT_ID=3e3b3b3b-3b3b-3b3b-3b3b-3b3b3b3b3b3b
GITHUB_APP_NAME=lateflip.io
DOMAIN=lateflip.io
WEBSITE_NAME=Lateflip
GITHUB_APP_NAME=latebit.io
DOMAIN=latebit.io
WEBSITE_NAME=latebit
EMAIL_TEMPLATE_DIR=src/bulwark-admin-api/email-templates
EMAIL_SEND_ADDRESS=admin@lateflip.io
EMAIL_SEND_ADDRESS=admin@latebit.io
EMAIL_SMTP=true
EMAIL_SMTP_HOST=localhost
EMAIL_SMTP_PORT=1025
EMAIL_SMTP_USER=user
EMAIL_SMTP_PASS=pass
EMAIL_SMTP_SECURE=false
EMAIL_SMTP_AUTH=false
VERIFICATION_URL=https://localhost:3000/verify
FORGOT_PASSWORD_URL=https://localhost:3000/reset-password
MAGIC_LINK_URL=https://localhost:3000/magic-link
Expand Down
3 changes: 2 additions & 1 deletion src/Bulwark.Auth/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
.GetEnvironmentVariable("EMAIL_SMTP_USER"),
Password = Environment
.GetEnvironmentVariable("EMAIL_SMTP_PASS"),
RequiresAuthentication = false
RequiresAuthentication = bool.Parse(Environment
.GetEnvironmentVariable("EMAIL_SMTP_AUTH") ?? "false")
});
var mongoClient = new MongoClient(Environment
.GetEnvironmentVariable("DB_CONNECTION"));
Expand Down

0 comments on commit 72c7710

Please sign in to comment.