mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
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:
commit
b2c32c465a
1 changed files with 3 additions and 1 deletions
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue