Skip to content

Commit

Permalink
Update password reset form button text
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm committed Nov 21, 2023
1 parent 59165c0 commit c281c07
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions ui/src/components/Auth/ResetPasswordRequestForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,10 @@ const ForgotPasswordForm: React.FC<ForgotPasswordFormProps> = ({
"&:hover": { backgroundColor: (theme) => theme.palette.accent4.dark },
}}
>
Sign In
Request password reset
</Button>
</form>
);
};

const errorCodeToMessage = (error: string) => {
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.`;
} else {
return `An unknown error occurred. Please try again and let us know if this keeps happening.`;
}
};

export default ForgotPasswordForm;

0 comments on commit c281c07

Please sign in to comment.