-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(users): Create config for TOTP Issuer (#4776)
- Loading branch information
1 parent
15d6c3e
commit 0cbb292
Showing
11 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
pub const MAX_NAME_LENGTH: usize = 70; | ||
pub const MAX_COMPANY_NAME_LENGTH: usize = 70; | ||
pub const BUSINESS_EMAIL: &str = "[email protected]"; | ||
|
||
pub const RECOVERY_CODES_COUNT: usize = 8; | ||
pub const RECOVERY_CODE_LENGTH: usize = 8; // This is without counting the hyphen in between | ||
pub const TOTP_ISSUER_NAME: &str = "Hyperswitch"; | ||
|
||
/// The number of digits composing the auth code. | ||
pub const TOTP_DIGITS: usize = 6; | ||
/// Duration in seconds of a step. | ||
pub const TOTP_VALIDITY_DURATION_IN_SECONDS: u64 = 30; | ||
/// Number of totps allowed as network delay. 1 would mean one totp before current totp and one totp after are valids. | ||
pub const TOTP_TOLERANCE: u8 = 1; | ||
|
||
pub const MAX_PASSWORD_LENGTH: usize = 70; | ||
pub const MIN_PASSWORD_LENGTH: usize = 8; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters