Re-write emails, remove HTML body.

SpamAssassin is a bitch.
This commit is contained in:
Paul
2021-07-28 14:59:16 +01:00
parent 3c0d736f1e
commit 74b4c6bf2a
5 changed files with 13 additions and 8 deletions

2
Cargo.lock generated
View File

@@ -2342,7 +2342,7 @@ dependencies = [
[[package]]
name = "rauth"
version = "0.2.7-patch.0"
source = "git+https://gitlab.insrt.uk/insert/rauth?rev=e17673d046f5e447b6805c4ec9a10525b0526d02#e17673d046f5e447b6805c4ec9a10525b0526d02"
source = "git+https://gitlab.insrt.uk/insert/rauth?rev=00d3c3dff51cf3242a7d4adda4c5184c97fa2a03#00d3c3dff51cf3242a7d4adda4c5184c97fa2a03"
dependencies = [
"chrono",
"handlebars",

View File

@@ -42,7 +42,7 @@ async-std = { version = "1.8.0", features = ["tokio02", "attributes"] }
async-tungstenite = { version = "0.10.0", features = ["async-std-runtime"] }
rocket_cors = { git = "https://github.com/insertish/rocket_cors", branch = "master" }
mongodb = { version = "1.1.1", features = ["tokio-runtime"], default-features = false }
rauth = { git = "https://gitlab.insrt.uk/insert/rauth", rev = "e17673d046f5e447b6805c4ec9a10525b0526d02" }
rauth = { git = "https://gitlab.insrt.uk/insert/rauth", rev = "00d3c3dff51cf3242a7d4adda4c5184c97fa2a03" }
rocket_contrib = { git = "https://github.com/SergioBenitez/Rocket", rev = "031948c1daaa146128d8a435be116476f2adde00" }
rocket_prometheus = { git = "https://github.com/insertish/rocket_prometheus", rev = "3d825aedb42793246c306a81fe67c5b187948983" }
rocket = { git = "https://github.com/SergioBenitez/Rocket", rev = "031948c1daaa146128d8a435be116476f2adde00", default-features = false }

View File

@@ -1,3 +1,3 @@
#!/bin/bash
export version=0.5.1-alpha.18
export version=0.5.1-alpha.19
echo "pub const VERSION: &str = \"${version}\";" > src/version.rs

View File

@@ -87,13 +87,18 @@ async fn launch_web() {
templates: Templates {
verify_email: Template {
title: "Verify your Revolt account.",
text: "You're almost there! Verify your account to be able to log into the platform. If you did not perform this action you can safely ignore this email.\nPlease verify your account here: {{url}}\n\nSent by Revolt. · Website: https://revolt.chat\nRevolt is a user-first chat platform built with modern web technologies.",
html: include_str!("../assets/templates/verify_plain.html"),
text: "You're almost there!
If you did not perform this action you can safely ignore this email.
Please verify your account here: {{url}}",
html: None,
},
reset_password: Template {
title: "Reset your Revolt password.",
text: "You requested a password reset, if you did not perform this action you can safely ignore this email.\nReset your password here: {{url}}\n\nSent by Revolt. · Website: https://revolt.chat\nRevolt is a user-first chat platform built with modern web technologies.",
html: include_str!("../assets/templates/reset_plain.html"),
text: "You requested a password reset, if you did not perform this action you can safely ignore this email.
Reset your password here: {{url}}",
html: None,
},
welcome: None,
},

View File

@@ -1 +1 @@
pub const VERSION: &str = "0.5.1-alpha.18";
pub const VERSION: &str = "0.5.1-alpha.19";