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():
|
def create_browser():
|
||||||
options = webdriver.ChromeOptions()
|
options = webdriver.ChromeOptions()
|
||||||
options.add_argument("--window-size=1920,1080")
|
options.add_argument("--window-size=1920,1080")
|
||||||
#options.add_argument("--headless")
|
# options.add_argument("--headless")
|
||||||
if settings.CI:
|
if settings.CI:
|
||||||
options.add_argument("--no-sandbox")
|
options.add_argument("--no-sandbox")
|
||||||
driver = webdriver.Chrome(options=options)
|
driver = webdriver.Chrome(options=options)
|
||||||
|
|||||||
@@ -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