Automatically remove outdated account creation requests

This commit is contained in:
2023-05-31 11:06:58 +02:00
parent 62a52b385e
commit 7f8e41b618
4 changed files with 26 additions and 3 deletions

@ -1,3 +1,5 @@
use std::time::Duration;
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct SizeConstraint {
min: usize,
@ -31,3 +33,6 @@ impl Default for StaticConstraints {
}
}
}
/// Password reset token duration
pub const PASSWORD_RESET_TOKEN_DURATION: Duration = Duration::from_secs(3600 * 24);