Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions client/src/pages/SignUpForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class SignUpForm extends Component {
this.state = {
email: '',
password: '',
confirm: '',
name: '',
hasAgreed: false
};
Expand Down Expand Up @@ -45,6 +46,11 @@ class SignUpForm extends Component {
<label className="FormField__Label" htmlFor="password">Password</label>
<input type="password" id="password" className="FormField__Input" placeholder="Enter your password" name="password" value={this.state.password} onChange={this.handleChange} />
</div>
<div className="FormField">
<label className="FormField__Label" htmlFor="confirm">Confirm Password</label>
<input type="password" id="confirm" className="FormField__Input" placeholder="Confirm password" name="confirm" value={this.state.confirm} onChange={this.handleChange} />
</div>
{(this.state.password !== this.state.confirm) && <h5>Passwords don't match</h5>}
<div className="FormField">
<label className="FormField__Label" htmlFor="email">E-Mail Address</label>
<input type="email" id="email" className="FormField__Input" placeholder="Enter your email" name="email" value={this.state.email} onChange={this.handleChange} />
Expand Down