drf-recaptcha
drf-recaptcha copied to clipboard
callable DRF_RECAPTCHA_SECRET_KEY with context
Making settings.DRF_RECAPTCHA_SECRET_KEY
callable with context
from Serializer
.
This could be useful when project has multiple keys (1 for android and 1 for web) and want to verify recaptacha the request based on some condition.
Let me know if this feature is ok to go with, will do the necessary doc changes.
Hi, thanks. I started to do it, but there is no time now sorry, I do not remember where I stuck. I'll have free time near New Year. Or maybe you can help to finish my branch? https://github.com/llybin/drf-recaptcha/tree/feet/dynamic_secretkey
Will take a look at it. Although, for my project I created new ReCaptchaV2Validator
that sets the key required before running validation.