mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Preventing unnecessary requests
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user