diff --git a/local.db-shm b/local.db-shm index 2de882f..4bf323a 100644 Binary files a/local.db-shm and b/local.db-shm differ diff --git a/local.db-wal b/local.db-wal index 559a2f2..5975b86 100644 Binary files a/local.db-wal and b/local.db-wal differ diff --git a/src/auth.ts b/src/auth.ts index 2bde941..5427421 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -1,3 +1,4 @@ + import NextAuth from 'next-auth'; import { authConfig } from './auth.config'; import Credentials from 'next-auth/providers/credentials'; @@ -17,7 +18,7 @@ export const { handlers, auth, signIn, signOut } = NextAuth({ const { email, password } = parsedCredentials.data; const user = await getUserByEmail(email); - if (!user) return null; + if (!user || !user.password) return null; // WARNING: Storing passwords in plaintext is insecure. // This is for demonstration purposes only.