A captcha middleware for Salvo framework
Find a file
Awiteb 79ff05d91d
All checks were successful
Rust CI / Rust CI (push) Successful in 1m31s
refactor: Refactor the CaptchaFinder and CaptchaStorage to work with token and answer as string
Signed-off-by: Awiteb <a@4rs.nl>
2024-08-09 20:14:39 +00:00
.forgejo/workflows chore: Moving to Forgejo instead of Github 2024-08-08 14:51:21 +00:00
.github/workflows chore: Moving to Forgejo instead of Github 2024-08-08 14:51:21 +00:00
examples refactor: Refactor the CaptchaFinder and CaptchaStorage to work with token and answer as string 2024-08-09 20:14:39 +00:00
src refactor: Refactor the CaptchaFinder and CaptchaStorage to work with token and answer as string 2024-08-09 20:14:39 +00:00
.gitignore First commit 2024-01-29 23:24:35 +03:00
Cargo.toml refactor: Refactor the CaptchaFinder and CaptchaStorage to work with token and answer as string 2024-08-09 20:14:39 +00:00
Justfile First commit 2024-01-29 23:24:35 +03:00
LICENSE chore: Update my email address 2024-08-08 11:53:06 +03:00
README.md chore: Moving to Forgejo instead of Github 2024-08-08 14:51:21 +00:00

salvo-captcha

A captcha middleware for salvo framework. It uses captcha crate to generate captcha images.

salvo-captcha-video

Add to your project

First, add the following to your Cargo.toml:

[dependencies]
salvo-captcha = "0.1"

Or use cargo-add to add the dependency to your Cargo.toml:

$ cargo add salvo-captcha

Usage

See the examples directory for a complete example.

Storage

The storage of the captcha is handled by a CaptchaStore trait. You can implement your own storage or use the cacache-rs by enabling the cacache-storage feature.

[dependencies]
salvo-captcha = { version = "0.1", features = ["cacache-storage"] }

Captcha name and difficulty

In this table, you can see the difference between the difficulties and the name of the captcha.

Name Easy Medium Hard
Amelia Simple Simple Simple
Lucy Simple Simple Simple
Mila Simple Simple Simple

Mirrors

Main Repository

License

This project is licensed under the MIT license for more details see LICENSE or http://opensource.org/licenses/MIT.