Which username password i need to use to login in symfony 2 Admin backend

652 Views Asked by At

I have installeed Sonata Admin Bundle and i can access url by /admin/login.

now i don't know which username and passowrd to use there.

When i try registered user/pass in /app/login it works there but when i enter in admin backend /admin/login then it says bad crendtials

1

There are 1 best solutions below

2
On

You can register a new user through command line:

php app/console fos:user:create

Than you have to assign the role that you have configured in security.yml. As default it should be ROLE_ADMIN.

php app/console fos:user:promote youUsername ROLE_ADMIN

Once you have completed these steps, you should be able to login in admin dashboard. If not, try to logout/login again.