mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-16 21:12:13 +00:00
Aronafail
This commit is contained in:
@@ -23,7 +23,7 @@ def create_datetime(year, month, day, hour, minute):
|
||||
def create_browser():
|
||||
options = webdriver.ChromeOptions()
|
||||
options.add_argument("--window-size=1920,1080")
|
||||
#options.add_argument("--headless")
|
||||
# options.add_argument("--headless")
|
||||
if settings.CI:
|
||||
options.add_argument("--no-sandbox")
|
||||
driver = webdriver.Chrome(options=options)
|
||||
|
||||
@@ -7,6 +7,7 @@ from registration.forms import RegistrationFormUniqueEmail
|
||||
|
||||
from RIGS import models
|
||||
|
||||
|
||||
class CaptchaField(hCaptchaField):
|
||||
def validate(self, value):
|
||||
# Skip validation if we're testing FIXME: Arona, y u so lazy
|
||||
@@ -14,6 +15,8 @@ class CaptchaField(hCaptchaField):
|
||||
super().validate(value)
|
||||
|
||||
# Registration
|
||||
|
||||
|
||||
class ProfileRegistrationFormUniqueEmail(RegistrationFormUniqueEmail):
|
||||
hcaptcha = CaptchaField()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user