Re-write emails, remove HTML body.
SpamAssassin is a bitch.
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -2342,7 +2342,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "rauth"
|
name = "rauth"
|
||||||
version = "0.2.7-patch.0"
|
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 = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"handlebars",
|
"handlebars",
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ async-std = { version = "1.8.0", features = ["tokio02", "attributes"] }
|
|||||||
async-tungstenite = { version = "0.10.0", features = ["async-std-runtime"] }
|
async-tungstenite = { version = "0.10.0", features = ["async-std-runtime"] }
|
||||||
rocket_cors = { git = "https://github.com/insertish/rocket_cors", branch = "master" }
|
rocket_cors = { git = "https://github.com/insertish/rocket_cors", branch = "master" }
|
||||||
mongodb = { version = "1.1.1", features = ["tokio-runtime"], default-features = false }
|
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_contrib = { git = "https://github.com/SergioBenitez/Rocket", rev = "031948c1daaa146128d8a435be116476f2adde00" }
|
||||||
rocket_prometheus = { git = "https://github.com/insertish/rocket_prometheus", rev = "3d825aedb42793246c306a81fe67c5b187948983" }
|
rocket_prometheus = { git = "https://github.com/insertish/rocket_prometheus", rev = "3d825aedb42793246c306a81fe67c5b187948983" }
|
||||||
rocket = { git = "https://github.com/SergioBenitez/Rocket", rev = "031948c1daaa146128d8a435be116476f2adde00", default-features = false }
|
rocket = { git = "https://github.com/SergioBenitez/Rocket", rev = "031948c1daaa146128d8a435be116476f2adde00", default-features = false }
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/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
|
echo "pub const VERSION: &str = \"${version}\";" > src/version.rs
|
||||||
|
|||||||
13
src/main.rs
13
src/main.rs
@@ -87,13 +87,18 @@ async fn launch_web() {
|
|||||||
templates: Templates {
|
templates: Templates {
|
||||||
verify_email: Template {
|
verify_email: Template {
|
||||||
title: "Verify your Revolt account.",
|
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.",
|
text: "You're almost there!
|
||||||
html: include_str!("../assets/templates/verify_plain.html"),
|
If you did not perform this action you can safely ignore this email.
|
||||||
|
|
||||||
|
Please verify your account here: {{url}}",
|
||||||
|
html: None,
|
||||||
},
|
},
|
||||||
reset_password: Template {
|
reset_password: Template {
|
||||||
title: "Reset your Revolt password.",
|
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.",
|
text: "You requested a password reset, if you did not perform this action you can safely ignore this email.
|
||||||
html: include_str!("../assets/templates/reset_plain.html"),
|
|
||||||
|
Reset your password here: {{url}}",
|
||||||
|
html: None,
|
||||||
},
|
},
|
||||||
welcome: None,
|
welcome: None,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
pub const VERSION: &str = "0.5.1-alpha.18";
|
pub const VERSION: &str = "0.5.1-alpha.19";
|
||||||
|
|||||||
Reference in New Issue
Block a user