No description
- C 85.4%
- Elixir 14%
- Makefile 0.6%
|
|
||
|---|---|---|
| .woodpecker | ||
| changelog.d | ||
| config | ||
| lib | ||
| priv | ||
| src | ||
| test | ||
| .formatter.exs | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| LICENSE | ||
| Makefile | ||
| mix.exs | ||
| mix.lock | ||
| README.md | ||
pleroma-captcha
This is the Pleroma fork of the elixir-captcha library for generating CAPTCHAs. No dependencies. It draws captcha images with C code. No ImageMagick, No RMagick.
C code from: https://github.com/huacnlee/rucaptcha

Installation
If available in Hex, the package can be installed as:
- Add
pleroma-captchato your list of dependencies inmix.exs:
```elixir
def deps do
[{:pleroma_captcha, "~> 1.0.0"}]
end
```
- Ensure
captchais started before your application:
```elixir
def application do
[applications: [:captcha]]
end
```
Usage
# allow customize receive timeout, default: 10_000
case Captcha.get() do
{:ok, text, img_binary } ->
# save text in session, then send img to client
{:timeout} ->
# log some error
end