1
0
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:
2021-05-08 19:17:33 +02:00
parent d84b7051fb
commit c0489613fb
7 changed files with 170 additions and 4 deletions

View File

@@ -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;