feat: define get captcha cooldown period interface

This commit is contained in:
realaravinth
2022-05-14 16:27:15 +05:30
parent 9d7bb3c0be
commit 09a8591cb4
2 changed files with 6 additions and 0 deletions

View File

@@ -183,6 +183,9 @@ pub trait MCDatabase: std::marker::Send + std::marker::Sync + CloneSPDatabase {
username: Option<&str>,
captcha_key: &str,
) -> DBResult<Vec<Level>>;
/// Get captcha's cooldown period
async fn get_captcha_cooldown(&self, captcha_key: &str) -> DBResult<i32>;
}
#[derive(Clone, Debug, Default, Deserialize, Serialize)]