Skip to content

Commit c575a07

Browse files
committed
Add password repeat field
1 parent c07ee76 commit c575a07

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/components/user/CreateAccountForm.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class CreateAccountForm extends React.Component {
4646
state = {
4747
email: undefined,
4848
password: undefined,
49+
password_confirmation: undefined,
4950
submitting: false,
5051
error: false,
5152
}
@@ -86,6 +87,17 @@ class CreateAccountForm extends React.Component {
8687
onChange={o => this.setState({ password: o.target.value })}
8788
/>
8889
</Row>
90+
<Row>
91+
<TextField
92+
variant="outlined"
93+
type={this.state.showPassword ? 'text' : 'password'}
94+
label="Salasana uudestaan"
95+
fullWidth
96+
value={this.state.password}
97+
onChange={o => this.setState({ password_confirmation: o.target.value })}
98+
/>
99+
</Row>
100+
89101

90102
<Row>
91103
<Button

0 commit comments

Comments
 (0)