Admin Setup
By default when you first start the backend server it will automatically create a default admin user.
The default admin user has default email and password. Default email [email protected]
and default password adminPassword98765#
. So after setting up the frontend and backend, your first task is to change the default email and password. Login into your dashboard then visit Profile tab from your account menu and change the email and password from there.
Alternatively, you can setup the email and password from the backend environment variable.
- Open your backend code then go to
.env
file. Then scroll down to the end of the page, you will see# Admin User Credentials
section. Remember, your password must not be longer than 25 characters.
# Admin User Credentials
ADMIN_USER_NAME="Your Name"
ADMIN_USER_EMAIL="[email protected]"
ADMIN_USER_PASSWORD="yourPassword"
The default admin creation works when you have zero users, and it will run for only once. For security reasons you must change the default password and email.
If you want to add more admins, you can add them from the dashboard. To be an admin or moderator a user must create an account first. Then you can assign any role to them.