From b3317e3a58bd84b9415512222c51817cb310e61e Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 23 Nov 2022 10:44:22 +0000 Subject: [PATCH] Update comment --- src/pages/api/auth/[...nextauth].js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/api/auth/[...nextauth].js b/src/pages/api/auth/[...nextauth].js index 125ef02..5b99fa9 100644 --- a/src/pages/api/auth/[...nextauth].js +++ b/src/pages/api/auth/[...nextauth].js @@ -7,7 +7,8 @@ import { } from "../../../utils/helpers/passwordHelpers"; import { createUser, getUser } from "../../../utils/helpers/userHelpers"; -// Create admin account if one doesn't exist yet +// Create admin account if one doesn't exist yet (this is temporary) +// There will be a CLI eventually const pass = generateRandomPassword(); createUser("admin", pass).then((returned) => { if (returned === true) { @@ -42,6 +43,7 @@ export const authOptions = { } user.lastLoginDate = new Date(); await user.save(); + console.log(`User: ${user}`); return user; } else { return null;