don't store blank captchas
This commit is contained in:
parent
947e367c7e
commit
de9d2f1129
@ -1264,7 +1264,7 @@
|
||||
},
|
||||
captchaKeydown: function(e) {
|
||||
var blank;
|
||||
if (e.keyCode !== 13) {
|
||||
if (!(e.keyCode === 13 && this.value)) {
|
||||
return;
|
||||
}
|
||||
blank = !$('textarea', qr.el).value && !$('input[type=file]', qr.el).files.length;
|
||||
|
||||
@ -997,7 +997,7 @@ qr =
|
||||
$('#recaptcha_challenge_field', qr.el).value = target.value
|
||||
|
||||
captchaKeydown: (e) ->
|
||||
return unless e.keyCode is 13 #enter
|
||||
return unless e.keyCode is 13 and @value #enter
|
||||
|
||||
blank = !$('textarea', qr.el).value and !$('input[type=file]', qr.el).files.length
|
||||
return unless blank or cooldown.duration
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user