Update comment
This commit is contained in:
parent
dfb7ef96a7
commit
b3317e3a58
@ -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;
|
||||
|
Reference in New Issue
Block a user