oncall-engine/engine/common/recaptcha/__init__.py
Innokentii Konstantinov 4b91203eca
Add validation of hostname for recapctha (#1445)
# What this PR does

- Implement recapthca v3 check. DRF_RECAPTCHA didn't support hostname
validation and it's too complicated to add it.
- Add validation of verification code on oncall side to not to call
twilio with obviously invalid codes

## Checklist

- [x] Tests updated
- [ ] Documentation added
- [ ] `CHANGELOG.md` updated
2023-03-06 08:59:48 +00:00

1 line
63 B
Python

from .recaptcha_v3 import check_recaptcha_internal_api # noqa