Skip to content

Commit e964d83

Browse files
committed
fix: use correct redirect to for password recovery
1 parent 9540608 commit e964d83

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/shared/src/components/auth/ForgotPasswordForm.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { useLogContext } from '../../contexts/LogContext';
1515
import AuthForm from './AuthForm';
1616
import { useAuthData } from '../../contexts/AuthDataContext';
1717
import { betterAuthForgetPassword } from '../../lib/betterAuth';
18-
import { webappUrl } from '../../lib/constants';
1918

2019
const AuthModalFooter = dynamic(
2120
() => import(/* webpackChunkName: "authModalFooter" */ './AuthModalFooter'),
@@ -45,7 +44,7 @@ function ForgotPasswordForm({
4544

4645
setIsLoading(true);
4746
setHint('');
48-
const redirectTo = `${webappUrl}reset-password`;
47+
const redirectTo = `${window.location.origin}/reset-password`;
4948
const res = await betterAuthForgetPassword(email, redirectTo);
5049
setIsLoading(false);
5150

0 commit comments

Comments
 (0)