diff --git a/crates/bonfire/Cargo.toml b/crates/bonfire/Cargo.toml index 16a5452a..0576f155 100644 --- a/crates/bonfire/Cargo.toml +++ b/crates/bonfire/Cargo.toml @@ -38,7 +38,7 @@ async-std = { version = "1.8.0", features = [ ] } # core -authifier = { version = "1.0.15" } +authifier = { version = "1.0.16" } revolt-result = { path = "../core/result" } revolt-models = { path = "../core/models" } revolt-config = { path = "../core/config" } diff --git a/crates/core/database/Cargo.toml b/crates/core/database/Cargo.toml index adce9dc6..b9a1d74f 100644 --- a/crates/core/database/Cargo.toml +++ b/crates/core/database/Cargo.toml @@ -100,7 +100,7 @@ revolt_okapi = { version = "0.9.1", optional = true } revolt_rocket_okapi = { version = "0.10.0", optional = true } # Authifier -authifier = { version = "1.0.15" } +authifier = { version = "1.0.16" } # RabbitMQ amqprs = { version = "1.7.0" } diff --git a/crates/core/database/src/drivers/mod.rs b/crates/core/database/src/drivers/mod.rs index f5dd67db..df9a56ef 100644 --- a/crates/core/database/src/drivers/mod.rs +++ b/crates/core/database/src/drivers/mod.rs @@ -10,6 +10,7 @@ use authifier::config::SMTPSettings; use authifier::config::Shield; use authifier::config::Template; use authifier::config::Templates; +use authifier::config::EmailExpiryConfig; use authifier::Authifier; use rand::Rng; use revolt_config::config; @@ -143,7 +144,11 @@ impl Database { use_tls: config.api.smtp.use_tls, use_starttls: config.api.smtp.use_starttls, }, - expiry: Default::default(), + expiry: EmailExpiryConfig { + expire_verification: 3600 * 24 * 7, + expire_password_reset: 3600 * 24, + expire_account_deletion: 3600 * 24, + }, templates: if config.production { Templates { verify: Template { diff --git a/crates/core/ratelimits/Cargo.toml b/crates/core/ratelimits/Cargo.toml index a9b77f2e..8be2b803 100644 --- a/crates/core/ratelimits/Cargo.toml +++ b/crates/core/ratelimits/Cargo.toml @@ -28,7 +28,7 @@ revolt_rocket_okapi = { version = "0.10.0", optional = true } axum = { version = "0.7.5", optional = true, features = ["macros"] } serde = { version = "1", features = ["derive"] } -authifier = { version = "1.0.15" } +authifier = { version = "1.0.16" } dashmap = "5.2.0" async-trait = "0.1.81" log = "0.4" diff --git a/crates/daemons/pushd/Cargo.toml b/crates/daemons/pushd/Cargo.toml index b6632cb1..72853f9b 100644 --- a/crates/daemons/pushd/Cargo.toml +++ b/crates/daemons/pushd/Cargo.toml @@ -9,7 +9,7 @@ publish = false revolt-result = { version = "0.10.3", path = "../../core/result" } revolt-config = { version = "0.10.3", path = "../../core/config", features = [ "report-macros", - "anyhow" + "anyhow", ] } revolt-database = { version = "0.10.3", path = "../../core/database" } revolt-models = { version = "0.10.3", path = "../../core/models", features = [ @@ -30,7 +30,7 @@ tokio = "1.39.2" async-trait = "0.1.81" ulid = "1.0.0" -authifier = "1.0.15" +authifier = "1.0.16" log = "0.4.11" pretty_env_logger = "0.4.0" diff --git a/crates/delta/Cargo.toml b/crates/delta/Cargo.toml index 0d33ea30..72f4bebb 100644 --- a/crates/delta/Cargo.toml +++ b/crates/delta/Cargo.toml @@ -57,7 +57,7 @@ lettre = "0.10.0-alpha.4" rocket = { version = "0.5.1", default-features = false, features = ["json"] } rocket_cors = { git = "https://github.com/lawliet89/rocket_cors", rev = "072d90359b23e9b291df6b672c07c93de9c46011" } rocket_empty = { version = "0.1.1", features = ["schema"] } -rocket_authifier = { version = "1.0.15" } +rocket_authifier = { version = "1.0.16" } rocket_prometheus = "0.10.0-rc.3" # spec generation @@ -68,7 +68,7 @@ revolt_rocket_okapi = { version = "0.10.0", features = ["swagger"] } amqprs = { version = "1.7.0" } # core -authifier = "1.0.15" +authifier = "1.0.16" revolt-config = { path = "../core/config" } revolt-database = { path = "../core/database", features = [ "rocket-impl", diff --git a/git-town.toml b/git-town.toml new file mode 100644 index 00000000..65a40966 --- /dev/null +++ b/git-town.toml @@ -0,0 +1,8 @@ +# See https://www.git-town.com/configuration-file for details + +[branches] +main = "main" + +[hosting] +forge-type = "github" +github-connector = "gh"