mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-22 08:13:57 +01:00
fix(mail): incorrect alias and error logs (#2346)
This commit is contained in:
parent
90e7d28173
commit
2811e5631b
@ -203,6 +203,7 @@ pub async fn send_verification<DB: Database>(
|
|||||||
let postmark_token = if let Some(token) = settings.mail.postmark.token {
|
let postmark_token = if let Some(token) = settings.mail.postmark.token {
|
||||||
token
|
token
|
||||||
} else {
|
} else {
|
||||||
|
error!("Failed to verify email: got None for postmark token");
|
||||||
return Err(ErrorResponse::reply("mail not configured")
|
return Err(ErrorResponse::reply("mail not configured")
|
||||||
.with_status(StatusCode::INTERNAL_SERVER_ERROR));
|
.with_status(StatusCode::INTERNAL_SERVER_ERROR));
|
||||||
};
|
};
|
||||||
|
@ -23,7 +23,7 @@ pub struct Mail {
|
|||||||
|
|
||||||
#[derive(Default, Clone, Debug, Deserialize, Serialize)]
|
#[derive(Default, Clone, Debug, Deserialize, Serialize)]
|
||||||
pub struct Postmark {
|
pub struct Postmark {
|
||||||
#[serde(alias = "enable")]
|
#[serde(alias = "token")]
|
||||||
pub token: Option<String>,
|
pub token: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user