Skip to content

Commit

Permalink
fixed placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
saksham-tiwari committed Aug 21, 2022
1 parent 9b3141e commit dc73e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Auth/Login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const Login = () => {
{
toggle ? <i id='passlock' class="fa fa-eye-slash" aria-hidden="true" onClick={() => { setToggle(!toggle) }}></i> : <i id="passlock" class="fa fa-eye" aria-hidden="true" onClick={() => { setToggle(!toggle) }}></i>
}
<input className='input-field' type={toggle ? "text" : "password"} placeholder='Enter New Password' name="password" {...register("password", { required: "password is required", minLength: { value: 8, message: "Password must be more than 8 characters" }, maxLength: { value: 14, message: "Password cannot exceed more than 14 characters" } })}></input>
<input className='input-field' type={toggle ? "text" : "password"} placeholder='Enter Password' name="password" {...register("password", { required: "password is required", minLength: { value: 8, message: "Password must be more than 8 characters" }, maxLength: { value: 14, message: "Password cannot exceed more than 14 characters" } })}></input>
<p className='alerts'>{errors.password?.message}</p>
</div>
</div>
Expand Down

0 comments on commit dc73e0f

Please sign in to comment.