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

-1
View File
@@ -224,7 +224,6 @@ export const buildUser = <T extends Partial<UserPayload>>(
invitedTo: null,
locale: "en",
metadata: null,
password: null,
role: "USER",
schedules: [],
selectedCalendars: [],
+1 -3
View File
@@ -56,9 +56,7 @@ export const validateAndGetCorrectedUsernameAndEmail = async ({
{
OR: [
{ emailVerified: { not: null } },
{
AND: [{ password: { not: null } }, { username: { not: null } }],
},
{ AND: [{ password: { isNot: null } }, { username: { not: null } }] },
],
},
],