X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/96e236bc692fe1449b14739e4be3fdc6c3bd92ce..774d79294bdeab0d9d841b9775f696cdbb334c4d:/src/wolnelektury/forms.py?ds=sidebyside

diff --git a/src/wolnelektury/forms.py b/src/wolnelektury/forms.py
index 180406500..783617745 100644
--- a/src/wolnelektury/forms.py
+++ b/src/wolnelektury/forms.py
@@ -1,15 +1,20 @@
-# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
 #
 from allauth.socialaccount.forms import SignupForm
-from django.contrib.auth.forms import UserCreationForm
+from django.contrib.auth.forms import AuthenticationForm, UserCreationForm
 from django.contrib.auth.models import User
 
 from newsletter.forms import NewsletterForm
 
 
+class WLAuthenticationForm(AuthenticationForm):
+    required_css_class = 'required'
+
+
 # has to be this order, because otherwise the form is lacking fields
 class RegistrationForm(UserCreationForm, NewsletterForm):
+    required_css_class = 'required'
     data_processing_part2 = '''\
 Dane są przetwarzane w zakresie niezbędnym do prowadzenia serwisu, a także w celach prowadzenia statystyk, \
 ewaluacji i sprawozdawczości. W przypadku wyrażenia dodatkowej zgody adres e-mail zostanie wykorzystany \