nycmeshnet / meshdb

A convenient, stable, and sane database for tracking Members and Nodes for use with robots and humans
https://db.nycmesh.net
MIT License
12 stars 14 forks source link

Add captcha validation #705

Closed Andrew-Dickinson closed 2 hours ago

Andrew-Dickinson commented 1 week ago

Adds captcha validation to the join form backend. Supports two different token types, the first is an implicit score based on the user's behavior. If that token scores low, then we will respond with HTTP 401 and the frontend will prompt them to do a checkbox captcha, which will generate a second token.

See also https://github.com/nycmeshnet/meshforms/pull/108

Closes #78

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.48%. Comparing base (67ef170) to head (4456281). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #705 +/- ## ========================================== + Coverage 94.41% 94.48% +0.07% ========================================== Files 86 86 Lines 3544 3589 +45 ========================================== + Hits 3346 3391 +45 Misses 198 198 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: