feat: define interface for update_captcha_key

This commit is contained in:
realaravinth
2022-05-12 20:18:53 +05:30
parent aa5bdcf1dc
commit e2ebae6e2e
2 changed files with 22 additions and 2 deletions

View File

@@ -144,6 +144,14 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
p: &CreateCaptcha,
) -> DBResult<()>;
/// update captcha key; doesn't change metadata
async fn update_captcha_key(
&self,
username: &str,
old_key: &str,
new_key: &str,
) -> DBResult<()>;
/// Add levels to captcha
async fn add_captcha_levels(
&self,