Skip to content

Commit

Permalink
Form Improved
Browse files Browse the repository at this point in the history
  • Loading branch information
yogendrarana committed May 15, 2023
1 parent c2a8784 commit 552e18a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,4 @@ Here are some of the key features of the Art Gallery E-commerce Platform:
<img width="100%" alt="profile" src="https://github.com/YogendraRana/mern-art-gallery/assets/71174333/f78fc87e-efec-4ca2-ab5b-4c9e909180c1">
</span>




</div>
</div>
4 changes: 2 additions & 2 deletions client/src/components/user/login/login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ const Login = (props) => {
</label>

<label>
<input type="email" placeholder="Email" value={email} onChange={e=>setEmail(e.target.value)} autoComplete="off" required/>
<input type="email" placeholder="Email" value={email} onChange={e=>setEmail(e.target.value)} autoComplete="new-password" required/>
</label>

<label>
<input type="password" placeholder="Password" value={password} onChange={e=>setPassword(e.target.value)} autoComplete="off" required/>
<input type="password" placeholder="Password" value={password} onChange={e=>setPassword(e.target.value)} autoComplete="new-password" required/>
</label>

<label className='moreOptions'>
Expand Down
8 changes: 4 additions & 4 deletions client/src/components/user/register/register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ const Register = () => {
</label>

<label>
<input type="text" name="name" value={user.name} placeholder='Name' autoComplete="off" onChange={handleChange} required />
<input type="text" name="name" value={user.name} placeholder='Name' autoComplete="new-password" onChange={handleChange} required />
</label>

<label>
<input type="email" name="email" value={user.email} placeholder="Email" autoComplete="off" onChange={handleChange} required/>
<input type="email" name="email" value={user.email} placeholder="Email" autoComplete="new-password" onChange={handleChange} required/>
</label>

<label>
<input type="password" name="password" value={user.password} placeholder="Create Password" autoComplete="off" onChange={handleChange} required/>
<input type="password" name="password" value={user.password} placeholder="Create Password" autoComplete="new-password" onChange={handleChange} required/>
</label>

<label>
<input type="password" name="confirmPassword" value={user.confirmPassword} placeholder="Confirm Password" autoComplete="off" onChange={handleChange} required/>
<input type="password" name="confirmPassword" value={user.confirmPassword} placeholder="Confirm Password" autoComplete="new-password" onChange={handleChange} required/>
</label>

<label>
Expand Down

0 comments on commit 552e18a

Please sign in to comment.