Interim Patch (#54)

Birb Patches (#1)

Birb Patches

Signed-off-by: Etzelia <etzelia@hotmail.com>

Co-authored-by: Etzelia <etzelia@hotmail.com>

Reviewed-by: ZeroHD <joey@ahines.net>
pull/2/head
Etz Elia 2020-06-11 22:18:51 +02:00
parent 58f611ee45
commit 83527fe4b5
2 changed files with 2 additions and 2 deletions

2
external/views.py vendored
View File

@ -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)

View File

@ -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)