Fix signing into correct user with credentials

This commit is contained in:
Max Leiter 2023-01-07 15:30:07 -08:00
parent 6148f8d1e9
commit a6c8c8c825
5 changed files with 1 additions and 11 deletions

View file

@ -11,7 +11,6 @@
.documentContainer { .documentContainer {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 400px;
overflow: auto; overflow: auto;
} }

View file

@ -13,7 +13,6 @@
.documentContainer { .documentContainer {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 400px;
overflow: auto; overflow: auto;
padding: var(--gap); padding: var(--gap);
border: 1px solid var(--lighter-gray); border: 1px solid var(--lighter-gray);

View file

@ -119,7 +119,6 @@ const providers = () => {
} }
}) })
console.log("New user created")
return newUser return newUser
} }
} }
@ -160,8 +159,7 @@ export const authOptions: NextAuthOptions = {
id: user.id id: user.id
}, },
data: { data: {
username: user.name, username: user.name?.replace(/ /g, "-")
displayName: user.name
} }
}) })
} }
@ -187,9 +185,6 @@ export const authOptions: NextAuthOptions = {
OR: [ OR: [
{ {
username: user?.username username: user?.username
},
{
email: user?.email
} }
] ]
} }

View file

@ -117,7 +117,6 @@ export async function getPostsByUser(userId: User["id"], withFiles?: boolean) {
}) })
} }
}) })
console.log(posts)
return posts return posts
} }

View file

@ -27,8 +27,6 @@ export default async function handle(
} }
}) })
console.log(tokens)
return res.json(tokens) return res.json(tokens)
} }
case "POST": { case "POST": {