mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 22:44:24 +01:00
Preventing unnecessary requests
This commit is contained in:
@@ -79,6 +79,7 @@ function submitkey(chal, key, nonce) {
|
|||||||
}, function (data) {
|
}, function (data) {
|
||||||
if (data == -1){
|
if (data == -1){
|
||||||
window.location="/login"
|
window.location="/login"
|
||||||
|
return
|
||||||
}
|
}
|
||||||
else if (data == 0){ // Incorrect key
|
else if (data == 0){ // Incorrect key
|
||||||
$('#submit-key').text('Incorrect, sorry')
|
$('#submit-key').text('Incorrect, sorry')
|
||||||
|
|||||||
Reference in New Issue
Block a user