mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Aronafail
This commit is contained in:
@@ -7,6 +7,7 @@ from registration.forms import RegistrationFormUniqueEmail
|
|||||||
|
|
||||||
from RIGS import models
|
from RIGS import models
|
||||||
|
|
||||||
|
|
||||||
class CaptchaField(hCaptchaField):
|
class CaptchaField(hCaptchaField):
|
||||||
def validate(self, value):
|
def validate(self, value):
|
||||||
# Skip validation if we're testing FIXME: Arona, y u so lazy
|
# Skip validation if we're testing FIXME: Arona, y u so lazy
|
||||||
@@ -14,6 +15,8 @@ class CaptchaField(hCaptchaField):
|
|||||||
super().validate(value)
|
super().validate(value)
|
||||||
|
|
||||||
# Registration
|
# Registration
|
||||||
|
|
||||||
|
|
||||||
class ProfileRegistrationFormUniqueEmail(RegistrationFormUniqueEmail):
|
class ProfileRegistrationFormUniqueEmail(RegistrationFormUniqueEmail):
|
||||||
hcaptcha = CaptchaField()
|
hcaptcha = CaptchaField()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user