User accounts

Users can be created from the terminal or front end.

After successful installation you will be asked on homepage to create new account. You must provide e-mail address and password. Newly created user is going to have ROLE_SUPER_ADMIN so it will be possible to access administration area under /admin URI. This registration will appear only on fresh installation and the condition is that system does not contain any user records.

Another way how to create a new user is to run a command within your terminal. Navigate to project root directory and run the command below which will create regular user without admin role. You will be asked to provide e-mail address and password.

php bin/console app:users:create

It is possible to add new super admin within the terminal as well. Just type the command below and newly created user will be assigned super user role.

php bin/console app:users:create-admin

By typing php bin/console help | grep app in terminal you can list all commands coming from the application.

In the /admin settings you can find important setting Allow registrations for allowing an access to create new user account within front end. By default this setting is disabled and you must enable it if you want to allow registrations.

Last updated