feat: preserve login params in forgot password screen (#819)

This commit is contained in:
Stavros
2026-04-26 18:03:25 +03:00
committed by GitHub
parent ab7c81f63b
commit c364b8682c
5 changed files with 23 additions and 6 deletions
@@ -17,6 +17,7 @@ interface Props {
onSubmit: (data: LoginSchema) => void;
loading?: boolean;
formId?: string;
params?: string;
}
export const LoginForm = (props: Props) => {
@@ -71,6 +72,12 @@ export const LoginForm = (props: Props) => {
</FormControl>
<a
href="/forgot-password"
onClick={(e) => {
e.preventDefault();
window.location.replace(
`/forgot-password${props.params ? `${props.params}` : ""}`,
);
}}
className="text-muted-foreground hover:text-muted-foreground/80 text-sm absolute right-0 bottom-[2.565rem]" // 2.565 is *just* perfect
>
{t("forgotPasswordTitle")}