From c786bd20f85fd01115de235f08f431d225160998 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Wed, 4 Apr 2018 23:32:04 +0200 Subject: [PATCH] Fix nuke button prompt (#469) Hitting the cancel button does not return "", but null. Therefore the toLowerCase() fails, and throwing an exception means "sure go ahead submitting this" to JS for some godforsaken reason. Just remove the toLowerCase for now, have people type the names properly. --- nyaa/templates/user.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyaa/templates/user.html b/nyaa/templates/user.html index c391563..8658a4b 100644 --- a/nyaa/templates/user.html +++ b/nyaa/templates/user.html @@ -123,7 +123,7 @@ {% if g.user.is_superadmin %}
-
+ {{ nuke_form.csrf_token }}