Patrick Arminio
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
0 deletions
-
frontend/src/hooks/useAuth.ts
-
frontend/src/routes/login.tsx
|
|
@ -43,6 +43,10 @@ const useAuth = () => { |
|
|
|
errDetail = err.message |
|
|
|
} |
|
|
|
|
|
|
|
if (Array.isArray(errDetail)) { |
|
|
|
errDetail = "Something went wrong" |
|
|
|
} |
|
|
|
|
|
|
|
setError(errDetail) |
|
|
|
}, |
|
|
|
}) |
|
|
|
|
|
@ -92,6 +92,7 @@ function Login() { |
|
|
|
})} |
|
|
|
placeholder="Email" |
|
|
|
type="email" |
|
|
|
required |
|
|
|
/> |
|
|
|
{errors.username && ( |
|
|
|
<FormErrorMessage>{errors.username.message}</FormErrorMessage> |
|
|
@ -103,6 +104,7 @@ function Login() { |
|
|
|
{...register("password")} |
|
|
|
type={show ? "text" : "password"} |
|
|
|
placeholder="Password" |
|
|
|
required |
|
|
|
/> |
|
|
|
<InputRightElement |
|
|
|
color="ui.dim" |
|
|
|