From 7bb7186f8d68932aa3cc9d9a1c3756c59bcfc343 Mon Sep 17 00:00:00 2001 From: CodeKevin Date: Thu, 8 Jan 2015 00:13:13 -0500 Subject: [PATCH] Preventing unnecessary requests --- static/js/chalboard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/chalboard.js b/static/js/chalboard.js index ef24bd73..c5871d60 100644 --- a/static/js/chalboard.js +++ b/static/js/chalboard.js @@ -79,6 +79,7 @@ function submitkey(chal, key, nonce) { }, function (data) { if (data == -1){ window.location="/login" + return } else if (data == 0){ // Incorrect key $('#submit-key').text('Incorrect, sorry')