Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

Same User on Two Different Bundle #100

Open
Coyzz opened this issue Mar 21, 2016 · 0 comments
Open

Same User on Two Different Bundle #100

Coyzz opened this issue Mar 21, 2016 · 0 comments

Comments

@Coyzz
Copy link

Coyzz commented Mar 21, 2016

Hello,

I would like to ask a question :

  • Normally, can we have 2 same users in two different bundle ?

I try this on my project and i have a strange result.

I'm working with JwtToken and API Rest.

Bundle A :

user : coy / mail : coy@coy.fr : id :4, role : USER_CUSTOMER

Bundle B:

user: coy / mail: coy@coy.fr id: 5, role : USER_PRODUCER

When i try to logging with the user B it's working. JWT anwser me that i'm logging with the good coy user (return id an userRole). (id: 5, role : USER_PRODUCER)

But just after that when i try to do another request like :

public function getMe(){

return $this->getUser()
}

The info on the session correspond to the Bundle A and anwser me : (id : 4 role:USER_CUSTOMER)

  • I try to setClass on the function and on loginSecurity but nothing change.

I have separated route for each bundle (login/register/api) and each bundle has is own controller.

Have you any idea ?

Thanks a lot!

Coy

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

No branches or pull requests

0 participants