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:
|
||||
|
||||
- `Master` trait: provides methods to manage mcaptcha
|
||||
- `MCaptcha::get_defense()`: returns the `MCaptcha` instance's defense
|
||||
configuration
|
||||
|
||||
## Changed:
|
||||
|
||||
|
|
|
@ -136,4 +136,10 @@ impl MCaptcha {
|
|||
pub fn get_visitors(&self) -> u32 {
|
||||
self.visitor_threshold
|
||||
}
|
||||
|
||||
/// get mCaptcha's defense configuration
|
||||
#[inline]
|
||||
pub fn get_defense(&self) -> Defense {
|
||||
self.defense.clone()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue