mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-12 18:45:41 +00:00
feat: define interface to add user's traffic pattern
This commit is contained in:
@@ -23,6 +23,7 @@ pub async fn database_works<'a, T: MCDatabase>(
|
||||
p: &Register<'a>,
|
||||
c: &CreateCaptcha<'a>,
|
||||
l: &[Level],
|
||||
tp: &TrafficPattern,
|
||||
) {
|
||||
assert!(db.ping().await, "ping test");
|
||||
if db.username_exists(p.username).await.unwrap() {
|
||||
|
||||
Reference in New Issue
Block a user