A captcha middleware for Salvo framework
|
||
---|---|---|
.forgejo/workflows | ||
.github/workflows | ||
examples | ||
src | ||
.gitignore | ||
Cargo.toml | ||
Justfile | ||
LICENSE | ||
README.md |
salvo-captcha
A captcha middleware for salvo framework. It uses captcha
crate to generate captcha images.
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 | |||
Lucy | |||
Mila |
Mirrors
- Github (https://github.com/TheAwiteb/salvo-captcha)
- Codeberg (https://codeberg.org/awiteb/salvo-captcha)
Main Repository
License
This project is licensed under the MIT license for more details see LICENSE or http://opensource.org/licenses/MIT.