chore: Update github.com urls to git.4rs.nl

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb 2024-08-10 11:55:26 +00:00
parent 60ae95ea5f
commit 42d598e0e4
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F
3 changed files with 4 additions and 7 deletions

View file

@ -6,7 +6,7 @@ edition = "2021"
authors = ["Awiteb <a@4rs.nl>"]
description = "A captcha middleware for Salvo framework."
license = "MIT"
repository = "https://github.com/TheAwiteb/salvo-captcha"
repository = "https://git.4rs.nl/awiteb/salvo-captcha"
documentation = "https://docs.rs/salvo-captcha"
readme = "README.md"
keywords = ["salvo", "captcha", "middleware"]

View file

@ -152,16 +152,13 @@ fn index_page(captcha_image: String, captcha_token: String) -> String {
</form>
<srong>Or you can skip the captcha</strong>
<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" />
<br/>
<input type="password" name="password" placeholder="Password" />
<br/>
<input type="submit" value="Skip Captcha" />
</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>
</html>
"#
@ -182,7 +179,7 @@ fn captcha_result_page(captcha_result: String) -> String {
</style>
<body>
<h1>Salvo Captcha Example</h1>
<h2>Sign In</h2>
<h2>Result page</h2>
<strong>{captcha_result}</strong>
<br/>
<a href="/">Go Back</a>

View file

@ -17,7 +17,7 @@ pub trait CaptchaGenerator: CaptchaStorage {
///
/// 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(
&self,
name: CaptchaName,