Daniel García
3 months ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
2 changed files with
2 additions and
2 deletions
-
src/api/core/two_factor/email.rs
-
src/api/core/two_factor/protected_actions.rs
|
|
|
@ -286,7 +286,7 @@ impl EmailTokenData { |
|
|
|
} |
|
|
|
|
|
|
|
pub fn add_attempt(&mut self) { |
|
|
|
self.attempts += 1; |
|
|
|
self.attempts = self.attempts.saturating_add(1); |
|
|
|
} |
|
|
|
|
|
|
|
pub fn to_json(&self) -> String { |
|
|
|
|
|
|
|
@ -51,7 +51,7 @@ impl ProtectedActionData { |
|
|
|
} |
|
|
|
|
|
|
|
pub fn add_attempt(&mut self) { |
|
|
|
self.attempts += 1; |
|
|
|
self.attempts = self.attempts.saturating_add(1); |
|
|
|
} |
|
|
|
|
|
|
|
pub fn time_since_sent(&self) -> TimeDelta { |
|
|
|
|