You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I would like to ask a question :
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 have separated route for each bundle (login/register/api) and each bundle has is own controller.
Have you any idea ?
Thanks a lot!
Coy
The text was updated successfully, but these errors were encountered: