Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Commit 0525fd6

Browse files
authored
make error look the same-ish (#624)
1 parent ef88529 commit 0525fd6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cmd/server/assets/login/reset-password.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,12 @@
7070
flash.alert('Password reset email sent.');
7171
}).catch(function(error) {
7272
flash.clear();
73-
flash.error(error.message);
74-
$submit.prop('disabled', false);
73+
if (error.code = "auth/user-not-found") {
74+
flash.alert('Password reset email sent.');
75+
} else {
76+
flash.error(error.message);
77+
$submit.prop('disabled', false);
78+
}
7579
});
7680
});
7781
});

0 commit comments

Comments
 (0)