Improved auth ux

This commit is contained in:
2025-10-22 12:09:28 +02:00
parent caef693c0e
commit 97515cca96
2 changed files with 10 additions and 1 deletions
+4
View File
@@ -115,6 +115,7 @@ export default function CreateAccount() {
<span>
Email
<Input
autoComplete="email"
onChange={(e) => setEmail(e.target.value)}
placeholder="[email protected]"
type="email"
@@ -123,6 +124,7 @@ export default function CreateAccount() {
<span>
Username
<Input
autoComplete="username"
onChange={(e) => setUsername(e.target.value)}
placeholder="john_doe"
/>
@@ -130,6 +132,7 @@ export default function CreateAccount() {
<span>
Password
<Input
autoComplete="new-password"
onChange={(e) => setPassword(e.target.value)}
type="password"
/>
@@ -137,6 +140,7 @@ export default function CreateAccount() {
<span>
Confirm Password
<Input
autoComplete="new-password"
onChange={(e) => setConfirmPassword(e.target.value)}
onKeyDown={(e) => {
if (e.key === "Enter") signup();
+6 -1
View File
@@ -51,11 +51,16 @@ export default function Login() {
<CardContent className="gap-3 flex flex-col">
<span>
Email
<Input onChange={(e) => setEmail(e.target.value)} type="email" />
<Input
autoComplete="username"
onChange={(e) => setEmail(e.target.value)}
type="email"
/>
</span>
<span>
Password
<Input
autoComplete="current-password"
onChange={(e) => setPassword(e.target.value)}
onKeyDown={(e) => {
if (e.key === "Enter") login();