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
parent
58f611ee45
commit
83527fe4b5
|
@ -73,7 +73,7 @@ class Apply(View):
|
||||||
captcha = mcm_utils.Captcha(request.POST)
|
captcha = mcm_utils.Captcha(request.POST)
|
||||||
valid = form.is_valid()
|
valid = form.is_valid()
|
||||||
r = rules()
|
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:
|
if valid and valid_username and valid_answer and captcha.success:
|
||||||
app = form.save()
|
app = form.save()
|
||||||
msg = mcm_utils.build_application(app)
|
msg = mcm_utils.build_application(app)
|
||||||
|
|
|
@ -61,7 +61,7 @@ class Application(models.Model):
|
||||||
player_type = models.TextField("What type of player are you?", max_length=300)
|
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 = 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)
|
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)
|
read_rules = models.CharField("Have you read the rules?", max_length=10)
|
||||||
accepted = models.NullBooleanField()
|
accepted = models.NullBooleanField()
|
||||||
date = models.DateTimeField(auto_now_add=True, blank=True, null=True)
|
date = models.DateTimeField(auto_now_add=True, blank=True, null=True)
|
||||||
|
|
Loading…
Reference in New Issue