1
0
Fork 0

Remove CONFIG.email_invitation option

Dieser Commit ist enthalten in:
Nick Fox 2018-12-17 17:02:15 -05:00
Ursprung e245e965ba
Commit 042c1072d9
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 82719985805A7CA8
2 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -479,7 +479,7 @@ fn send_invite(org_id: String, data: JsonUpcase<InviteData>, headers: AdminHeade
} }
} }
if CONFIG.email_invitations { if CONFIG.mail.is_some() {
use crate::mail; use crate::mail;
use chrono::{Duration, Utc}; use chrono::{Duration, Utc};
let time_now = Utc::now().naive_utc(); let time_now = Utc::now().naive_utc();

Datei anzeigen

@ -271,7 +271,6 @@ pub struct Config {
local_icon_extractor: bool, local_icon_extractor: bool,
signups_allowed: bool, signups_allowed: bool,
invitations_allowed: bool, invitations_allowed: bool,
email_invitations: bool,
server_admin_email: Option<String>, server_admin_email: Option<String>,
password_iterations: i32, password_iterations: i32,
show_password_hint: bool, show_password_hint: bool,
@ -322,7 +321,6 @@ impl Config {
signups_allowed: get_env_or("SIGNUPS_ALLOWED", true), signups_allowed: get_env_or("SIGNUPS_ALLOWED", true),
server_admin_email: get_env("SERVER_ADMIN_EMAIL"), server_admin_email: get_env("SERVER_ADMIN_EMAIL"),
invitations_allowed: get_env_or("INVITATIONS_ALLOWED", true), invitations_allowed: get_env_or("INVITATIONS_ALLOWED", true),
email_invitations: get_env_or("EMAIL_INVITATIONS", false),
password_iterations: get_env_or("PASSWORD_ITERATIONS", 100_000), password_iterations: get_env_or("PASSWORD_ITERATIONS", 100_000),
show_password_hint: get_env_or("SHOW_PASSWORD_HINT", true), show_password_hint: get_env_or("SHOW_PASSWORD_HINT", true),