We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9540608 commit e964d83Copy full SHA for e964d83
1 file changed
packages/shared/src/components/auth/ForgotPasswordForm.tsx
@@ -15,7 +15,6 @@ import { useLogContext } from '../../contexts/LogContext';
15
import AuthForm from './AuthForm';
16
import { useAuthData } from '../../contexts/AuthDataContext';
17
import { betterAuthForgetPassword } from '../../lib/betterAuth';
18
-import { webappUrl } from '../../lib/constants';
19
20
const AuthModalFooter = dynamic(
21
() => import(/* webpackChunkName: "authModalFooter" */ './AuthModalFooter'),
@@ -45,7 +44,7 @@ function ForgotPasswordForm({
45
44
46
setIsLoading(true);
47
setHint('');
48
- const redirectTo = `${webappUrl}reset-password`;
+ const redirectTo = `${window.location.origin}/reset-password`;
49
const res = await betterAuthForgetPassword(email, redirectTo);
50
setIsLoading(false);
51
0 commit comments