Skip to content

Commit

Permalink
log if no use exists
Browse files Browse the repository at this point in the history
  • Loading branch information
genox committed Oct 8, 2024
1 parent 46fc77c commit 87a2b1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config/seed/dev-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export const seedDevUser = async (payload: Payload) => {
});

if (existingUsers.docs.length === 0) {
payload.logger.warn(
'No existing user, creating default user "[email protected]" with password "admin". Please change immediately.',
);
const testOrg = await payload.create({
collection: 'organisations',
data: {
Expand Down

0 comments on commit 87a2b1f

Please sign in to comment.