mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-09-25 22:29:45 +00:00
Can check the validity of a password reset token
This commit is contained in:
@@ -82,4 +82,10 @@ pub const PATH_COMMENTS_IMAGES: &str = "imgcommentaire";
|
||||
pub const MAX_REQUEST_SIZE: usize = 50000000;
|
||||
|
||||
/// Maximum number of choices per survey
|
||||
pub const MAXIMUM_NUMBER_SURVEY_CHOICES: usize = 20;
|
||||
pub const MAXIMUM_NUMBER_SURVEY_CHOICES: usize = 20;
|
||||
|
||||
/// Length of password reset token
|
||||
pub const PASSWORD_RESET_TOKEN_LENGTH: usize = 255;
|
||||
|
||||
/// Duration of the validity of a password reset token (6 hours)
|
||||
pub const PASSWORD_RESET_TOKEN_LIFETIME: u64 = 60 * 60 * 6;
|
Reference in New Issue
Block a user