Preventing unnecessary requests

This commit is contained in:
CodeKevin
2015-01-08 00:13:13 -05:00
parent c5c3126bb4
commit 7bb7186f8d

View File

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