Something went wrong.
This commit is contained in:
Leon Serfaty G
2025-09-01 07:07:33 +00:00
parent 23e8f298d3
commit 5eb0a5a6fb
3 changed files with 2 additions and 1 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -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.