mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-12 10:35:39 +00:00
Deploying to gh-pages from @ 6b8ee754dd836dae3da3e3b5ead926f4854da629 🚀
This commit is contained in:
@@ -444,6 +444,26 @@
|
||||
<a href="#444" id="444">444</a>
|
||||
<a href="#445" id="445">445</a>
|
||||
<a href="#446" id="446">446</a>
|
||||
<a href="#447" id="447">447</a>
|
||||
<a href="#448" id="448">448</a>
|
||||
<a href="#449" id="449">449</a>
|
||||
<a href="#450" id="450">450</a>
|
||||
<a href="#451" id="451">451</a>
|
||||
<a href="#452" id="452">452</a>
|
||||
<a href="#453" id="453">453</a>
|
||||
<a href="#454" id="454">454</a>
|
||||
<a href="#455" id="455">455</a>
|
||||
<a href="#456" id="456">456</a>
|
||||
<a href="#457" id="457">457</a>
|
||||
<a href="#458" id="458">458</a>
|
||||
<a href="#459" id="459">459</a>
|
||||
<a href="#460" id="460">460</a>
|
||||
<a href="#461" id="461">461</a>
|
||||
<a href="#462" id="462">462</a>
|
||||
<a href="#463" id="463">463</a>
|
||||
<a href="#464" id="464">464</a>
|
||||
<a href="#465" id="465">465</a>
|
||||
<a href="#466" id="466">466</a>
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
@@ -648,6 +668,13 @@
|
||||
captcha_key: <span class="kw-2">&</span>str,
|
||||
) -> DBResult<TrafficPattern>;
|
||||
|
||||
<span class="doccomment">/// Get all easy captcha configurations on instance
|
||||
</span><span class="kw">async fn </span>get_all_easy_captchas(
|
||||
<span class="kw-2">&</span><span class="self">self</span>,
|
||||
limit: usize,
|
||||
offset: usize,
|
||||
) -> DBResult<Vec<EasyCaptcha>>;
|
||||
|
||||
<span class="doccomment">/// Delete traffic configuration
|
||||
</span><span class="kw">async fn </span>delete_traffic_pattern(
|
||||
<span class="kw-2">&</span><span class="self">self</span>,
|
||||
@@ -829,6 +856,19 @@
|
||||
</span><span class="kw">pub </span>message: <span class="kw-2">&</span><span class="lifetime">'a </span>str,
|
||||
}
|
||||
|
||||
<span class="attr">#[derive(Default, PartialEq, Serialize, Deserialize, Clone, Debug)]
|
||||
</span><span class="doccomment">/// Represents Easy captcha configuration
|
||||
</span><span class="kw">pub struct </span>EasyCaptcha {
|
||||
<span class="doccomment">/// traffic pattern of easy captcha
|
||||
</span><span class="kw">pub </span>traffic_pattern: TrafficPattern,
|
||||
<span class="doccomment">/// captcha key/sitekey
|
||||
</span><span class="kw">pub </span>key: String,
|
||||
<span class="doccomment">/// captcha description
|
||||
</span><span class="kw">pub </span>description: String,
|
||||
<span class="doccomment">/// Owner of the captcha configuration
|
||||
</span><span class="kw">pub </span>username: String,
|
||||
}
|
||||
|
||||
<span class="attr">#[derive(Default, PartialEq, Serialize, Deserialize, Clone, Debug)]
|
||||
</span><span class="doccomment">/// User's traffic pattern; used in generating a captcha configuration
|
||||
</span><span class="kw">pub struct </span>TrafficPattern {
|
||||
|
||||
Reference in New Issue
Block a user