You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
Use the new password manager
This commit is contained in:
@ -43,7 +43,7 @@ pub use self::{
|
||||
UpstreamOAuthAuthorizationSession, UpstreamOAuthLink, UpstreamOAuthProvider,
|
||||
},
|
||||
users::{
|
||||
Authentication, BrowserSession, User, UserEmail, UserEmailVerification,
|
||||
Authentication, BrowserSession, Password, User, UserEmail, UserEmailVerification,
|
||||
UserEmailVerificationState,
|
||||
},
|
||||
};
|
||||
|
@ -37,6 +37,15 @@ impl User {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
|
||||
pub struct Password {
|
||||
pub id: Ulid,
|
||||
pub hashed_password: String,
|
||||
pub version: u16,
|
||||
pub upgraded_from_id: Option<Ulid>,
|
||||
pub created_at: DateTime<Utc>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
|
||||
pub struct Authentication {
|
||||
pub id: Ulid,
|
||||
|
Reference in New Issue
Block a user