drf-recaptcha icon indicating copy to clipboard operation
drf-recaptcha copied to clipboard

callable DRF_RECAPTCHA_SECRET_KEY with context

Open daadu opened this issue 4 years ago • 3 comments

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.

daadu avatar Dec 18 '20 07:12 daadu

Let me know if this feature is ok to go with, will do the necessary doc changes.

daadu avatar Dec 18 '20 07:12 daadu

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

llybin avatar Dec 18 '20 07:12 llybin

Will take a look at it. Although, for my project I created new ReCaptchaV2Validator that sets the key required before running validation.

daadu avatar Dec 18 '20 12:12 daadu