lol spammers.

master
Nick Sergeant 2016-05-10 13:42:01 -04:00
parent 4a06d282bf
commit 37acfb27e0
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@ from annoying.decorators import render_to
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.core.mail import send_mail
from django.http import HttpResponseRedirect
from django.http import HttpResponseBadRequest, HttpResponseRedirect
from snipts.models import Snipt
@ -22,6 +22,9 @@ def activate(request):
if request.method == 'POST':
if 'token' not in request.POST:
return HttpResponseBadRequest()
token = request.POST['token']
stripe.api_key = os.environ.get('STRIPE_SECRET_KEY',
settings.STRIPE_SECRET_KEY)