X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/31006b86a2e9883d8a4c5fe18128821b325773ab..eb769f1b951951ebd6cb55060f2f61a8c25d5aac:/redakcja/views.py diff --git a/redakcja/views.py b/redakcja/views.py index 07c6d65b..948a374e 100644 --- a/redakcja/views.py +++ b/redakcja/views.py @@ -7,6 +7,8 @@ from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login from django.contrib.auth.models import User from django.core.mail import send_mail +from honeypot.decorators import check_honeypot + from .forms import RegistrationForm from catalogue.models import Document from organizations.models import Organization @@ -33,6 +35,7 @@ def main(request): }) +@check_honeypot def register(request): if request.method == 'POST': form = RegistrationForm(request.POST, request.FILES)