You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Database refactoring
This commit is contained in:
@@ -164,7 +164,7 @@ where
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
|
||||
pub enum UserEmailVerificationState {
|
||||
AlreadyUsed { when: DateTime<Utc> },
|
||||
Expired,
|
||||
Expired { when: DateTime<Utc> },
|
||||
Valid,
|
||||
}
|
||||
|
||||
@@ -200,7 +200,9 @@ where
|
||||
UserEmailVerificationState::AlreadyUsed {
|
||||
when: Utc::now() - Duration::minutes(5),
|
||||
},
|
||||
UserEmailVerificationState::Expired,
|
||||
UserEmailVerificationState::Expired {
|
||||
when: Utc::now() - Duration::hours(5),
|
||||
},
|
||||
UserEmailVerificationState::Valid,
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user