Improved auth ux
This commit is contained in:
@@ -115,6 +115,7 @@ export default function CreateAccount() {
|
|||||||
<span>
|
<span>
|
||||||
Email
|
Email
|
||||||
<Input
|
<Input
|
||||||
|
autoComplete="email"
|
||||||
onChange={(e) => setEmail(e.target.value)}
|
onChange={(e) => setEmail(e.target.value)}
|
||||||
placeholder="[email protected]"
|
placeholder="[email protected]"
|
||||||
type="email"
|
type="email"
|
||||||
@@ -123,6 +124,7 @@ export default function CreateAccount() {
|
|||||||
<span>
|
<span>
|
||||||
Username
|
Username
|
||||||
<Input
|
<Input
|
||||||
|
autoComplete="username"
|
||||||
onChange={(e) => setUsername(e.target.value)}
|
onChange={(e) => setUsername(e.target.value)}
|
||||||
placeholder="john_doe"
|
placeholder="john_doe"
|
||||||
/>
|
/>
|
||||||
@@ -130,6 +132,7 @@ export default function CreateAccount() {
|
|||||||
<span>
|
<span>
|
||||||
Password
|
Password
|
||||||
<Input
|
<Input
|
||||||
|
autoComplete="new-password"
|
||||||
onChange={(e) => setPassword(e.target.value)}
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
type="password"
|
type="password"
|
||||||
/>
|
/>
|
||||||
@@ -137,6 +140,7 @@ export default function CreateAccount() {
|
|||||||
<span>
|
<span>
|
||||||
Confirm Password
|
Confirm Password
|
||||||
<Input
|
<Input
|
||||||
|
autoComplete="new-password"
|
||||||
onChange={(e) => setConfirmPassword(e.target.value)}
|
onChange={(e) => setConfirmPassword(e.target.value)}
|
||||||
onKeyDown={(e) => {
|
onKeyDown={(e) => {
|
||||||
if (e.key === "Enter") signup();
|
if (e.key === "Enter") signup();
|
||||||
|
|||||||
@@ -51,11 +51,16 @@ export default function Login() {
|
|||||||
<CardContent className="gap-3 flex flex-col">
|
<CardContent className="gap-3 flex flex-col">
|
||||||
<span>
|
<span>
|
||||||
Email
|
Email
|
||||||
<Input onChange={(e) => setEmail(e.target.value)} type="email" />
|
<Input
|
||||||
|
autoComplete="username"
|
||||||
|
onChange={(e) => setEmail(e.target.value)}
|
||||||
|
type="email"
|
||||||
|
/>
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
Password
|
Password
|
||||||
<Input
|
<Input
|
||||||
|
autoComplete="current-password"
|
||||||
onChange={(e) => setPassword(e.target.value)}
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
onKeyDown={(e) => {
|
onKeyDown={(e) => {
|
||||||
if (e.key === "Enter") login();
|
if (e.key === "Enter") login();
|
||||||
|
|||||||
Reference in New Issue
Block a user