get defense configuration

This commit is contained in:
Aravinth Manivannan 2021-07-19 16:21:01 +05:30
parent 0d8de9092b
commit 510606895a
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,8 @@
## Added:
- `Master` trait: provides methods to manage mcaptcha
- `MCaptcha::get_defense()`: returns the `MCaptcha` instance's defense
configuration
## Changed:

View File

@ -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()
}
}