Open muntii opened 3 months ago
You can just add the admin user manually.
you can edit the userController.js to add an Admin user :
const user = await User.create({
name,
email,
password,
isAdmin: true, // MAKE SURE TO REMOVE IT AFTER ADDING YOUR ADMIN USER
});
How to setup first admin user? There is no option to set user as admin in Register page