Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Process of creating a new admin is half broken (Christmas bonus special) #169

Open
HcsOmot opened this issue Dec 25, 2017 · 1 comment
Open
Assignees
Labels

Comments

@HcsOmot
Copy link
Collaborator

HcsOmot commented Dec 25, 2017

When an existing admin tries to create an account for a new admin, they can't reach the confirmation page.

New account gets created, and user is inserted into db. But redirection to Confirmation page is broken (I'm guessing fos:user automatically logs in the newly created user and tries to redirect them to /register/confirmed).
This is happening because the default role fos:user assigns to new users is ROLE_USER, and we have restricted access to /register to ROLE_ADMIN level users (or higher).

@msvrtan any ideas on what our options are?

TODO:

  • add tests for this feature
  • prove it fails
  • fix the problem
  • prove it's fixed
@HcsOmot HcsOmot changed the title Process of creating a new admin is half broken Process of creating a new admin is half broken (Christmas bonus special) Dec 25, 2017
@HcsOmot HcsOmot added the bug label Dec 25, 2017
@HcsOmot HcsOmot self-assigned this Dec 25, 2017
@msvrtan
Copy link
Contributor

msvrtan commented Mar 27, 2018

Instead of going thru registration, we should integrate in FOSUserBundle to manage users

https://symfony.com/doc/master/bundles/EasyAdminBundle/integration/fosuserbundle.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants