Update comment

This commit is contained in:
Lee 2022-11-23 10:44:22 +00:00
parent dfb7ef96a7
commit b3317e3a58
No known key found for this signature in database
GPG Key ID: 6EA25896ECCB3121

@ -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;