diff --git a/src/Bulwark.Auth/.env b/src/Bulwark.Auth/.env index ca2a666..7166dce 100644 --- a/src/Bulwark.Auth/.env +++ b/src/Bulwark.Auth/.env @@ -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 diff --git a/src/Bulwark.Auth/Program.cs b/src/Bulwark.Auth/Program.cs index 653bb6a..2e31a4c 100644 --- a/src/Bulwark.Auth/Program.cs +++ b/src/Bulwark.Auth/Program.cs @@ -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"));