From 83527fe4b57ca8bc512fbcc4107653d7aa7cb27b Mon Sep 17 00:00:00 2001 From: Etz Elia Date: Thu, 11 Jun 2020 22:18:51 +0200 Subject: [PATCH] Interim Patch (#54) Birb Patches (#1) Birb Patches Signed-off-by: Etzelia Co-authored-by: Etzelia Reviewed-by: ZeroHD --- external/views.py | 2 +- models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/external/views.py b/external/views.py index 5d40f82..6b5623a 100644 --- a/external/views.py +++ b/external/views.py @@ -73,7 +73,7 @@ class Apply(View): captcha = mcm_utils.Captcha(request.POST) valid = form.is_valid() r = rules() - valid_answer = not r["validate"] or r["answer"] == form.data['read_rules'] + valid_answer = not r["validate"] or r["answer"].casefold() == form.data['read_rules'].casefold() if valid and valid_username and valid_answer and captcha.success: app = form.save() msg = mcm_utils.build_application(app) diff --git a/models.py b/models.py index 095bf16..db11175 100644 --- a/models.py +++ b/models.py @@ -61,7 +61,7 @@ class Application(models.Model): player_type = models.TextField("What type of player are you?", max_length=300) ever_banned = models.BooleanField("Have you ever been banned?", default=False) ever_banned_explanation = models.TextField("If you were previously banned, will you share why?", max_length=300, blank=True, null=True) - reference = models.CharField("Were you referred to our server?", max_length=50, blank=True, null=True) + reference = models.CharField("How did you find out about our server?", max_length=50, blank=True, null=True) read_rules = models.CharField("Have you read the rules?", max_length=10) accepted = models.NullBooleanField() date = models.DateTimeField(auto_now_add=True, blank=True, null=True)