feat: define interface to change password

This commit is contained in:
realaravinth
2022-05-11 19:51:06 +05:30
parent f398c4b61c
commit f55a383eb5
2 changed files with 17 additions and 1 deletions

View File

@@ -122,6 +122,9 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
/// get a user's password
async fn get_password(&self, l: &Login) -> DBResult<NameHash>;
/// update user's password
async fn update_password(&self, p: &NameHash) -> DBResult<()>;
}
/// Trait to clone MCDatabase