mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-10-16 07:25:44 -04:00
fix(native): explain change-password failures and block double submit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
15 files changed
+195
-131
No files matched your search
@@ -48,4 +48,10 @@ describe("getAuthErrorMessage", () => {
|
||||
expect(getAuthErrorMessage({ code: "INVALID_EMAIL" }, "F")).toBe("Enter a valid email address");
|
||||
expect(getAuthErrorMessage({ code: "UNKNOWN" }, "F")).toBe("F");
|
||||
});
|
||||
|
||||
test("maps a wrong current password", () => {
|
||||
expect(getAuthErrorMessage({ code: "INVALID_PASSWORD" }, "x")).toBe(
|
||||
"Current password is incorrect",
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user