chore: Update github.com
urls to git.4rs.nl
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
parent
60ae95ea5f
commit
42d598e0e4
3 changed files with 4 additions and 7 deletions
|
@ -6,7 +6,7 @@ edition = "2021"
|
||||||
authors = ["Awiteb <a@4rs.nl>"]
|
authors = ["Awiteb <a@4rs.nl>"]
|
||||||
description = "A captcha middleware for Salvo framework."
|
description = "A captcha middleware for Salvo framework."
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/TheAwiteb/salvo-captcha"
|
repository = "https://git.4rs.nl/awiteb/salvo-captcha"
|
||||||
documentation = "https://docs.rs/salvo-captcha"
|
documentation = "https://docs.rs/salvo-captcha"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
keywords = ["salvo", "captcha", "middleware"]
|
keywords = ["salvo", "captcha", "middleware"]
|
||||||
|
|
|
@ -152,16 +152,13 @@ fn index_page(captcha_image: String, captcha_token: String) -> String {
|
||||||
</form>
|
</form>
|
||||||
<srong>Or you can skip the captcha</strong>
|
<srong>Or you can skip the captcha</strong>
|
||||||
<form action="/skipped" method="post">
|
<form action="/skipped" method="post">
|
||||||
<input type="hidden" name="captcha_token" value="{captcha_token}" />
|
|
||||||
<input type="hidden" name="captcha_answer"/>
|
|
||||||
|
|
||||||
<input type="text" name="username" placeholder="Username" />
|
<input type="text" name="username" placeholder="Username" />
|
||||||
<br/>
|
<br/>
|
||||||
<input type="password" name="password" placeholder="Password" />
|
<input type="password" name="password" placeholder="Password" />
|
||||||
<br/>
|
<br/>
|
||||||
<input type="submit" value="Skip Captcha" />
|
<input type="submit" value="Skip Captcha" />
|
||||||
</form>
|
</form>
|
||||||
<a href="https://github.com/TheAwiteb/salvo-captcha">Source Code</a>
|
<a href="https://git.4rs.nl/awiteb/salvo-captcha">Source Code</a>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
"#
|
"#
|
||||||
|
@ -182,7 +179,7 @@ fn captcha_result_page(captcha_result: String) -> String {
|
||||||
</style>
|
</style>
|
||||||
<body>
|
<body>
|
||||||
<h1>Salvo Captcha Example</h1>
|
<h1>Salvo Captcha Example</h1>
|
||||||
<h2>Sign In</h2>
|
<h2>Result page</h2>
|
||||||
<strong>{captcha_result}</strong>
|
<strong>{captcha_result}</strong>
|
||||||
<br/>
|
<br/>
|
||||||
<a href="/">Go Back</a>
|
<a href="/">Go Back</a>
|
||||||
|
|
|
@ -17,7 +17,7 @@ pub trait CaptchaGenerator: CaptchaStorage {
|
||||||
///
|
///
|
||||||
/// The returned captcha image is 220x110 pixels.
|
/// The returned captcha image is 220x110 pixels.
|
||||||
///
|
///
|
||||||
/// For more information about the captcha name and difficulty, see the [`README.md`](https://github.com/TheAwiteb/salvo-captcha/#captcha-name-and-difficulty).
|
/// For more information about the captcha name and difficulty, see the [`README.md`](https://git.4rs.nl/awiteb/salvo-captcha/#captcha-name-and-difficulty).
|
||||||
fn new_captcha(
|
fn new_captcha(
|
||||||
&self,
|
&self,
|
||||||
name: CaptchaName,
|
name: CaptchaName,
|
||||||
|
|
Loading…
Reference in a new issue