feat: define interface for updating username

This commit is contained in:
realaravinth
2022-05-11 20:01:32 +05:30
parent 748f48e0d2
commit 83f6456a59
2 changed files with 19 additions and 3 deletions

View File

@@ -125,6 +125,9 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
/// update user's password
async fn update_password(&self, p: &NameHash) -> DBResult<()>;
/// update username
async fn update_username(&self, current: &str, new: &str) -> DBResult<()>;
}
/// Trait to clone MCDatabase