refactor: migrates user password to it's own table (#13628)
This commit is contained in:
1 parent
7702ded85e
commit
7b0d5959cb
25 files changed
+189
-89
No files matched your search
@@ -224,7 +224,6 @@ export const buildUser = <T extends Partial<UserPayload>>(
|
||||
invitedTo: null,
|
||||
locale: "en",
|
||||
metadata: null,
|
||||
password: null,
|
||||
role: "USER",
|
||||
schedules: [],
|
||||
selectedCalendars: [],
|
||||
|
||||
@@ -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 } }] },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user