A captcha middleware for Salvo framework
Go to file
Awiteb 30c7c36cba
Some checks failed
CI / Rust build (push) Has been cancelled
CI / Rust format (push) Has been cancelled
CI / Rust check (push) Has been cancelled
CI / Rust clippy (push) Has been cancelled
CI / Rust test (push) Has been cancelled
Update awiteb email address
2024-02-08 13:01:35 +03:00
.github Add github workflows 2024-01-29 23:24:04 +03:00
examples First commit 2024-01-29 23:24:35 +03:00
src Update awiteb email address 2024-02-08 13:01:35 +03:00
.gitignore First commit 2024-01-29 23:24:35 +03:00
Cargo.toml Update awiteb email address 2024-02-08 13:01:35 +03:00
Justfile First commit 2024-01-29 23:24:35 +03:00
LICENSE Update awiteb email address 2024-02-08 13:01:35 +03:00
README.md Add README.md 2024-01-29 23:23:41 +03: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 different between the difficulties and the name of the captcha.

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

License

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