Navbar works properly again

This commit is contained in:
2021-09-13 16:14:09 +01:00
parent 6458f016f0
commit 796f5b44b0
5 changed files with 23 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
from captcha.fields import ReCaptchaField
from hcaptcha.fields import hCaptchaField
from django import forms
from django.contrib.auth.forms import (AuthenticationForm, PasswordResetForm,
UserChangeForm, UserCreationForm)
@@ -9,7 +9,7 @@ from RIGS import models
# Registration
class ProfileRegistrationFormUniqueEmail(RegistrationFormUniqueEmail):
captcha = ReCaptchaField()
hcaptcha = hCaptchaField()
class Meta:
model = models.Profile
@@ -41,7 +41,7 @@ class EmbeddedAuthenticationForm(CheckApprovedForm):
class PasswordReset(PasswordResetForm):
captcha = ReCaptchaField(label='Captcha')
hcaptcha = hCaptchaField()
class ProfileCreationForm(UserCreationForm):