Skip to content

Commit

Permalink
fix(mail): incorrect alias and error logs (#2346)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie authored Aug 6, 2024
1 parent 90e7d28 commit 2811e56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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 @@ -203,6 +203,7 @@ pub async fn send_verification<DB: Database>(
let postmark_token = if let Some(token) = settings.mail.postmark.token {
token
} else {
error!("Failed to verify email: got None for postmark token");
return Err(ErrorResponse::reply("mail not configured")
.with_status(StatusCode::INTERNAL_SERVER_ERROR));
};
Expand Down
2 changes: 1 addition & 1 deletion crates/atuin-server/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub struct Mail {

#[derive(Default, Clone, Debug, Deserialize, Serialize)]
pub struct Postmark {
#[serde(alias = "enable")]
#[serde(alias = "token")]
pub token: Option<String>,
}

Expand Down

0 comments on commit 2811e56

Please sign in to comment.