BUGFIX: Reset password now only sends email to accounts which exist within the database

This commit is contained in:
JustIceO7
2025-03-07 01:18:05 +00:00
parent 1173896710
commit 4b9c1196d4
3 changed files with 19 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ const ForgotPasswordForm: React.FC<SubmitProps> = ({ onSubmit }) => {
if (!response.ok) {
const data = await response.json();
throw new Error(
data.message || "An error has occurred while resetting"
data.error || "An error has occurred while resetting"
);
} else {
confirmPasswordReset();