include example of failing response

This commit is contained in:
Ben Wheeler 2019-09-04 23:34:17 -04:00
parent ce3921bec5
commit 7587c68582

View file

@ -44,6 +44,17 @@ class JoinFlow extends React.Component {
});
}
handleRegistrationResponse (err, body, res) {
// example of failing response:
// [
// {
// "msg": "This field is required.",
// "errors": {
// "username": ["This field is required."],
// "recaptcha": ["Incorrect, please try again."]
// },
// "success": false
// }
// ]
this.setState({waiting: false}, () => {
let errStr = '';
if (!err && res.statusCode === 200) {