Skip to content

Client-side validation is not enough #33

@unsudo

Description

@unsudo

Without proper server-side validation a captcha is worthless. You can easily bypass this captcha by opening the developer tools in any browser. Paste the following code for the validate() method in the console tab and hit "Enter". Now, every input is considered valid, even no input is valid, and the success callback is fired.

jCaptcha.prototype.validate = function() {
    this.callbackReceived = this.callbackReceived || (typeof this.options.callback == 'function');
    this.callbackReceived && this.options.callback('success', this.$el, 1);
    (this.options.clearOnSubmit === true) && (this.$el.value = '');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions