|
@@ -24,8 +24,8 @@ const RegisterForm = ({ onRegister, regData }) => {
|
|
<input className='forms__input' type="text" placeholder='Login' onChange={(e) => setLogin(e.target.value)} />
|
|
<input className='forms__input' type="text" placeholder='Login' onChange={(e) => setLogin(e.target.value)} />
|
|
<input className='forms__input' type="password" placeholder='Password' onChange={(e) => setPassword(e.target.value)} />
|
|
<input className='forms__input' type="password" placeholder='Password' onChange={(e) => setPassword(e.target.value)} />
|
|
<input
|
|
<input
|
|
- className='forms__input'
|
|
|
|
- disabled={!password} type="password" placeholder='Repeat Password *'
|
|
|
|
|
|
+ className='forms__input'
|
|
|
|
+ disabled={!password || password.length < 8} type="password" placeholder='Repeat Password *'
|
|
onChange={(e) => setPassword2(e.target.value)}
|
|
onChange={(e) => setPassword2(e.target.value)}
|
|
/>
|
|
/>
|
|
<small style={{ color: 'red' }}>{password2 && password2 !== password ? 'Passwords do not match' : ''}</small>
|
|
<small style={{ color: 'red' }}>{password2 && password2 !== password ? 'Passwords do not match' : ''}</small>
|