mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
feat: update novice captcha creation form to include publish_benchmarks
preference
This commit is contained in:
@@ -83,7 +83,11 @@ impl SystemGroup {
|
||||
enum_system_wrapper!(get_pow, String, CaptchaResult<Option<PoWConfig>>);
|
||||
|
||||
// utility function to verify [Work]
|
||||
pub async fn verify_pow(&self, msg: Work, ip: String) -> CaptchaResult<String> {
|
||||
pub async fn verify_pow(
|
||||
&self,
|
||||
msg: Work,
|
||||
ip: String,
|
||||
) -> CaptchaResult<(String, u32)> {
|
||||
match self {
|
||||
Self::Embedded(val) => val.verify_pow(msg, ip).await,
|
||||
Self::Redis(val) => val.verify_pow(msg, ip).await,
|
||||
|
||||
Reference in New Issue
Block a user