Skip to content

Commit

Permalink
Revert SignInForm change for errorToMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm committed Nov 15, 2024
1 parent 5c5ff9a commit 5dfb680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/auth/SignInForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default function SignInForm({ onSubmit, errors }: SignInFormProps) {
}

const errorCodeToMessage = (error: string) => {
if (error === "Authentication failed") {
if (error === "invalid_credentials") {
return "Your email and password didn't match our records. Please try again.";
} else if (error) {
return `An error occurred: ${error}. Please try again and let us know if this keeps happening.`;
Expand Down

0 comments on commit 5dfb680

Please sign in to comment.