Moar recaptcha.

master
Nick Sergeant 2015-09-23 12:30:07 -04:00
parent 2aaf20b42b
commit 1a761d229c
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ def for_teams_complete(request):
if request.method == 'POST':
if 'g-recaptcha-response' not in request.META:
return HttpResponseBadRequest()
payload = {
'secret': settings.RECAPTCHA_SECRET,
'response': request.POST['g-recaptcha-response'],