mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-09-25 22:29:45 +00:00
Automatically update last user activity
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
//!
|
||||
//! @author Pierre Hubert
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
/// The name of the tables
|
||||
pub mod database_tables_names {
|
||||
/// API services tokens table
|
||||
@@ -103,4 +105,7 @@ pub const PASSWORD_RESET_TOKEN_LIFETIME: u64 = 60 * 60 * 6;
|
||||
pub const PASSWORD_MIN_LENGTH: usize = 3;
|
||||
|
||||
/// Supported languages (for ComunicWeb)
|
||||
pub const SUPPORTED_LANGUAGES: &'static [&'static str] = &["en", "fr"];
|
||||
pub const SUPPORTED_LANGUAGES: &'static [&'static str] = &["en", "fr"];
|
||||
|
||||
/// Interval at which last active time of user should be recorded
|
||||
pub const USER_LAST_ACTIVITY_REFRESH: Duration = Duration::from_secs(60);
|
Reference in New Issue
Block a user