fix: update Revolt -> Stoat in email titles/desc. (#508)
This commit is contained in:
@@ -69,7 +69,7 @@ impl DatabaseInfo {
|
|||||||
.await;
|
.await;
|
||||||
|
|
||||||
#[cfg(not(feature = "mongodb"))]
|
#[cfg(not(feature = "mongodb"))]
|
||||||
return Err("MongoDB not enabled.".to_string())
|
return Err("MongoDB not enabled.".to_string());
|
||||||
} else {
|
} else {
|
||||||
DatabaseInfo::Reference.connect().await
|
DatabaseInfo::Reference.connect().await
|
||||||
}
|
}
|
||||||
@@ -90,7 +90,7 @@ impl DatabaseInfo {
|
|||||||
.await;
|
.await;
|
||||||
|
|
||||||
#[cfg(not(feature = "mongodb"))]
|
#[cfg(not(feature = "mongodb"))]
|
||||||
return Err("MongoDB not enabled.".to_string())
|
return Err("MongoDB not enabled.".to_string());
|
||||||
}
|
}
|
||||||
_ => unreachable!("must specify REFERENCE or MONGODB"),
|
_ => unreachable!("must specify REFERENCE or MONGODB"),
|
||||||
}
|
}
|
||||||
@@ -137,7 +137,7 @@ impl Database {
|
|||||||
.api
|
.api
|
||||||
.smtp
|
.smtp
|
||||||
.reply_to
|
.reply_to
|
||||||
.unwrap_or("support@revolt.chat".into()),
|
.unwrap_or("support@stoat.chat".into()),
|
||||||
),
|
),
|
||||||
port: config.api.smtp.port,
|
port: config.api.smtp.port,
|
||||||
use_tls: config.api.smtp.use_tls,
|
use_tls: config.api.smtp.use_tls,
|
||||||
@@ -147,19 +147,19 @@ impl Database {
|
|||||||
templates: if config.production {
|
templates: if config.production {
|
||||||
Templates {
|
Templates {
|
||||||
verify: Template {
|
verify: Template {
|
||||||
title: "Verify your Revolt account.".into(),
|
title: "Verify your Stoat account.".into(),
|
||||||
text: include_str!("../../templates/verify.txt").into(),
|
text: include_str!("../../templates/verify.txt").into(),
|
||||||
url: format!("{}/login/verify/", config.hosts.app),
|
url: format!("{}/login/verify/", config.hosts.app),
|
||||||
html: Some(include_str!("../../templates/verify.html").into()),
|
html: Some(include_str!("../../templates/verify.html").into()),
|
||||||
},
|
},
|
||||||
reset: Template {
|
reset: Template {
|
||||||
title: "Reset your Revolt password.".into(),
|
title: "Reset your Stoat password.".into(),
|
||||||
text: include_str!("../../templates/reset.txt").into(),
|
text: include_str!("../../templates/reset.txt").into(),
|
||||||
url: format!("{}/login/reset/", config.hosts.app),
|
url: format!("{}/login/reset/", config.hosts.app),
|
||||||
html: Some(include_str!("../../templates/reset.html").into()),
|
html: Some(include_str!("../../templates/reset.html").into()),
|
||||||
},
|
},
|
||||||
reset_existing: Template {
|
reset_existing: Template {
|
||||||
title: "You already have a Revolt account, reset your password."
|
title: "You already have a Stoat account, reset your password."
|
||||||
.into(),
|
.into(),
|
||||||
text: include_str!("../../templates/reset-existing.txt").into(),
|
text: include_str!("../../templates/reset-existing.txt").into(),
|
||||||
url: format!("{}/login/reset/", config.hosts.app),
|
url: format!("{}/login/reset/", config.hosts.app),
|
||||||
|
|||||||
@@ -4,6 +4,6 @@ Please navigate to: {{url}}
|
|||||||
|
|
||||||
This email is intended for {{email}}
|
This email is intended for {{email}}
|
||||||
|
|
||||||
This email has no association with Revolt or Revolt Platforms Ltd.
|
This email has no association with Stoat or Revolt Platforms Ltd.
|
||||||
Learn more about third party instances here:
|
Learn more about third party instances here:
|
||||||
https://developers.revolt.chat/faq.html
|
https://developers.revolt.chat/faq.html
|
||||||
|
|||||||
@@ -5,6 +5,6 @@ Please navigate to: {{url}}
|
|||||||
|
|
||||||
This email is intended for {{email}}
|
This email is intended for {{email}}
|
||||||
|
|
||||||
This email has no association with Revolt or Revolt Platforms Ltd.
|
This email has no association with Stoat or Revolt Platforms Ltd.
|
||||||
Learn more about third party instances here:
|
Learn more about third party instances here:
|
||||||
https://developers.revolt.chat/faq.html
|
https://developers.revolt.chat/faq.html
|
||||||
|
|||||||
Reference in New Issue
Block a user