Merge pull request #1138 from mewtaylor/issue/gh-1097

Fix GH-1097: Don’t validate username server side unless it passes client-side checks
This commit is contained in:
Matthew Taylor 2017-01-20 07:48:49 -05:00 committed by GitHub
commit b2c32c465a

View file

@ -136,7 +136,9 @@ module.exports = {
}.bind(this));
},
onUsernameBlur: function (event) {
this.validateUsername(event.currentTarget.value);
if (this.refs.form.refs.formsy.inputs[0].isValidValue(event.currentTarget.value)) {
this.validateUsername(event.currentTarget.value);
}
},
onValidSubmit: function (formData) {
this.setState({waiting: true});