From 3c27a724a0dae3ced1b3a0359ca84a8fcea7711c Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 14 Nov 2022 02:40:47 +0000 Subject: [PATCH] Added more info for the admin account debug creator --- 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..13ff465 100644 --- a/src/pages/api/auth/[...nextauth].js +++ b/src/pages/api/auth/[...nextauth].js @@ -11,7 +11,9 @@ import { createUser, getUser } from "../../../utils/helpers/userHelpers"; const pass = generateRandomPassword(); createUser("admin", pass).then((returned) => { if (returned === true) { - console.log(`Created admin account. Username: admin, Password: ${pass}`); + console.log( + `Created admin account. Username: admin, Password: ${pass}, uploadKey: ${returned.uploadKey}` + ); } });