Refactor environment module: Rename enviroment to environment and consolidate environment configuration management
- Updated all references from `enviroment` to `environment` across the codebase. - Removed the old `enviroment` module and replaced it with a new `environment` module that includes centralized configuration management. - Enhanced OTP generation to include secure hashing and expiration handling. - Improved CSRF token generation and validation with better error handling. - Cleaned up logging statements in various modules for clarity and consistency. - Updated response formatting to include versioning from Cargo.toml. - Removed unused mock test module from utils.
This commit is contained in:
@@ -79,7 +79,7 @@ impl TeamsService {
|
||||
}
|
||||
|
||||
async fn generate_invitation_token() -> String {
|
||||
format!("team_{}_{}", Uuid::new_v4(), OtpManager::generate_otp())
|
||||
format!("team_{}_{}", Uuid::new_v4(), OtpManager::generate_otp().code)
|
||||
}
|
||||
|
||||
async fn get_user_info_with_privacy(
|
||||
|
||||
Reference in New Issue
Block a user