get defense configuration
This commit is contained in:
parent
0d8de9092b
commit
510606895a
2 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
||||||
## Added:
|
## Added:
|
||||||
|
|
||||||
- `Master` trait: provides methods to manage mcaptcha
|
- `Master` trait: provides methods to manage mcaptcha
|
||||||
|
- `MCaptcha::get_defense()`: returns the `MCaptcha` instance's defense
|
||||||
|
configuration
|
||||||
|
|
||||||
## Changed:
|
## Changed:
|
||||||
|
|
||||||
|
|
|
@ -136,4 +136,10 @@ impl MCaptcha {
|
||||||
pub fn get_visitors(&self) -> u32 {
|
pub fn get_visitors(&self) -> u32 {
|
||||||
self.visitor_threshold
|
self.visitor_threshold
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// get mCaptcha's defense configuration
|
||||||
|
#[inline]
|
||||||
|
pub fn get_defense(&self) -> Defense {
|
||||||
|
self.defense.clone()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue