How to create admin user after first install bundle ?
Forum rules
Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
How to create admin user after first install bundle ?
How to create admin user after first install bundle ?
or
How to create user and give him privilege to be admin?
or
How to create user and give him privilege to be admin?
Re: How to create admin user after first install bundle ?
That highly depends on your used authentication configuration. Please have a look into the Symfony documentation for a deeper insight into authentication.
An example for setting up the FOS user bundle is described here:
https://aimeos.org/docs/Symfony/Configu ... ndle_login
There you can set up an admin account executing this command:
An example for setting up the FOS user bundle is described here:
https://aimeos.org/docs/Symfony/Configu ... ndle_login
There you can set up an admin account executing this command:
Code: Select all
bin/console aimeos:account --admin <your email>
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: How to create admin user after first install bundle ?
I add this configuration and stop at lat command line ;/
I got this error:./bin/console fos:user:promote <email address> ROLE_ADMIN
any tips?[Doctrine\ORM\Mapping\MappingException]
Duplicate definition of column 'salt' on entity 'Aimeos\ShopBundle\Entity\FosUser' in a field or discriminator column mapping.
Re: How to create admin user after first install bundle ?
We've release the new 2017.07 version today. Can you please update to that version and set up authentication like described in the documentation?ksicinski wrote:I got this error:./bin/console fos:user:promote <email address> ROLE_ADMIN[Doctrine\ORM\Mapping\MappingException]
Duplicate definition of column 'salt' on entity 'Aimeos\ShopBundle\Entity\FosUser' in a field or discriminator column mapping.
https://github.com/aimeos/aimeos-symfony#installation
Then, things should work as expected when using fos:user:promote
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: How to create admin user after first install bundle ?
Your update help.
I have only one remark this is bad lousy solution:
I can forgot add this --no-dev parameters and add some new bundle and make update at production server this maibe crashed prod shop ;/
I thin better option will be create symfony console command to run all method hidden in this --no-dev parameters and add to manual information to run this command if user want install dev items.
I have only one remark this is bad lousy solution:
Code: Select all
composer update --no-dev
I thin better option will be create symfony console command to run all method hidden in this --no-dev parameters and add to manual information to run this command if user want install dev items.
Re: How to create admin user after first install bundle ?
To be more precise, it should be
like stated in the installation documentation at GitHub
Code: Select all
SYMFONY_ENV=prod composer update --no-dev
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star