refactor: migrates user password to it's own table (#13628)

This commit is contained in:
Omar López authored and GitHub committed 2024-02-12 14:13:21 -07:00
1 parent 7702ded85e
commit 7b0d5959cb
25 files changed
+189 -89

No files matched your search

@@ -86,7 +86,8 @@ testBothFutureAndLegacyRoutes.describe("Forgot password", async () => {
});
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
expect(await verifyPassword(newPassword, updatedUser.password!)).toBeTruthy();
const updatedPassword = updatedUser.password!.hash;
expect(await verifyPassword(newPassword, updatedPassword)).toBeTruthy();
// finally, make sure the same URL cannot be used to reset the password again, as it should be expired.
await page.goto(`/auth/forgot-password/${id}`);