feat: define interface for updating captcha metadata

This commit is contained in:
realaravinth
2022-05-12 20:09:18 +05:30
parent c458e4a233
commit 1e6a259d57
2 changed files with 13 additions and 0 deletions

View File

@@ -137,6 +137,13 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
/// create new captcha
async fn create_captcha(&self, username: &str, p: &CreateCaptcha) -> DBResult<()>;
/// update captcha metadata; doesn't change captcha key
async fn update_captcha_metadata(
&self,
username: &str,
p: &CreateCaptcha,
) -> DBResult<()>;
/// Add levels to captcha
async fn add_captcha_levels(
&self,