Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Do (more) client side validation of registration parameters. #93

Merged
merged 2 commits into from
Jan 15, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jan 15, 2016

this.props.onError(errCode);
return;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're removing the checks from "submit" time and moving them to be recalculated on the fly which is cool, but we then need to check in onSubmit that there are no invalid fields. I don't see this check being made, so what's stopping me from just hitting Register with invalid fields?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The server will reject it anyway (don't say we didn't warn you!) but yes, point - this is easy to do.

@kegsay
Copy link
Member

kegsay commented Jan 15, 2016

LGTM aside from comment.

@dbkr
Copy link
Member Author

dbkr commented Jan 15, 2016

Fixed. Changes are probably big enough to warrant a ptal.

@kegsay
Copy link
Member

kegsay commented Jan 15, 2016

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants