mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-09-25 22:29:45 +00:00
Can create new admin accounts from command line
This commit is contained in:
@@ -60,6 +60,10 @@ pub mod database_tables_names {
|
||||
|
||||
/// Forez presence table
|
||||
pub const FOREZ_PRESENCE_TABLE: &str = "forez_presence";
|
||||
|
||||
/// Administrators tables
|
||||
pub const ADMIN_LIST_TABLE: &str = "comunic_admin";
|
||||
pub const ADMIN_KEYS_TABLE: &str = "comunic_admin_key";
|
||||
}
|
||||
|
||||
/// Push Notifications Database prefix
|
||||
@@ -153,6 +157,12 @@ 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;
|
||||
|
||||
/// Length of admin reset tokens
|
||||
pub const ADMIN_RESET_TOKEN_LENGTH: usize = 255;
|
||||
|
||||
/// Duration of the validity of a password reset token (1 hour)
|
||||
pub const ADMIN_RESET_TOKEN_LIFETIME: u64 = 60 * 60;
|
||||
|
||||
/// Minimum password length
|
||||
pub const PASSWORD_MIN_LENGTH: usize = 3;
|
||||
|
||||
|
Reference in New Issue
Block a user