mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-14 13:08:27 +03:00
feat: define username exists endpoint
This commit is contained in:
parent
9e5b54a23d
commit
454075a3d9
1 changed files with 3 additions and 0 deletions
|
@ -83,6 +83,9 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
|
|||
|
||||
/// delete a user
|
||||
async fn delete_user(&self, username: &str) -> DBResult<()>;
|
||||
|
||||
/// check if username exists
|
||||
async fn username_exists(&self, username: &str) -> DBResult<bool>;
|
||||
}
|
||||
|
||||
/// Trait to clone MCDatabase
|
||||
|
|
Loading…
Add table
Reference in a new issue