Skip to content

Commit

Permalink
fix(mail): enable correct tls features for postmark client (#2347)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie authored Aug 6, 2024
1 parent 2811e56 commit 58c9049
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 16 deletions.
154 changes: 139 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/atuin-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ argon2 = "0.5"
semver = { workspace = true }
metrics-exporter-prometheus = "0.12.1"
metrics = "0.21.1"
postmark = {version= "0.10.1", features=["reqwest"]}
postmark = {version= "0.10.2", features=["reqwest", "reqwest-rustls-tls"]}
1 change: 1 addition & 0 deletions crates/atuin-server/src/handlers/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ pub async fn send_verification<DB: Database>(
state: State<AppState<DB>>,
) -> Result<Json<SendVerificationResponse>, ErrorResponseStatus<'static>> {
let settings = state.0.settings;
debug!("request to verify user {}", user.username);

if !settings.mail.enabled {
return Ok(Json(SendVerificationResponse {
Expand Down

0 comments on commit 58c9049

Please sign in to comment.