This commit is contained in:
javayhu 2025-03-18 11:45:10 +08:00
commit 35ee109cd3
4 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ export const ForgotPasswordForm = ({ className }: { className?: string }) => {
},
onError: (ctx) => {
console.error('forgotPassword, error:', ctx.error);
setError(`${ctx.error.status} : ${ctx.error.statusText}`);
setError(`${ctx.error.status}: ${ctx.error.message}`);
},
}
);

View File

@ -74,7 +74,7 @@ export const LoginForm = ({ className }: { className?: string }) => {
},
onError: (ctx) => {
console.error('login, error:', ctx.error);
setError(`${ctx.error.status}:${ctx.error.statusText}`);
setError(`${ctx.error.status}: ${ctx.error.message}`);
},
}
);

View File

@ -75,7 +75,7 @@ export const RegisterForm = () => {
onError: (ctx) => {
// sign up fail, display the error message
console.error('register, error:', ctx.error);
setError(`${ctx.error.status}:${ctx.error.statusText}`);
setError(`${ctx.error.status}: ${ctx.error.message}`);
},
}
);

View File

@ -84,7 +84,7 @@ export const ResetPasswordForm = () => {
},
onError: (ctx) => {
console.error('resetPassword, error:', ctx.error);
setError(`${ctx.error.status}:${ctx.error.statusText}`);
setError(`${ctx.error.status}: ${ctx.error.message}`);
},
}
);