Skip to content

Commit

Permalink
fix: show password on login
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo-battista committed Aug 30, 2023
1 parent 2846ed3 commit 8c35e1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions crud/user/UserCrud.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export function UserCrud({
<>
<div className="grid gap-4">
<Form.Field id="username" />
<Form.Field id="email" />
<Form.Field id="type" />
<Form.Field id="first_name" />
<Form.Field id="last_name" />
Expand Down
4 changes: 2 additions & 2 deletions pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function Login({ csrfToken }: { csrfToken: string }) {
/>
<Input
value={password}
type="password"
type={!showPassword ? "password" : "text"}
onChange={(e) => setPassword(e.target.value)}
placeholder="Password"
fullWidth
Expand All @@ -86,7 +86,7 @@ export default function Login({ csrfToken }: { csrfToken: string }) {
role="presentation"
onClick={() => setShowPassword(!showPassword)}
>
{showPassword ? (
{!showPassword ? (
<EyeIcon className="h-5 w-5 stroke-white/50" />
) : (
<EyeSlashIcon className="h-5 w-5 stroke-white/50" />
Expand Down

0 comments on commit 8c35e1c

Please sign in to comment.