0
votes

I'am working on a project which has an API built with symfony2 as backend and front end app in Angular2. After logging in and getting token when I try to sent get request to my backend endpoint api this issue happend -->FosUserbundle Username marc does not exist

I mentionne that my database have a table user with an recording user name marc I think that is an FOSUSERBUNDLE security error any idea for solved it?

attached

database user FOSUSERBUNDLE provider security.yml

thank you

1
how can I override to load by another property (useremail) - kadal sparkadal
change security option security.providers.id to fos_user.user_provider.username_email - Max P.
can you tell me more about where I have to do it please? - kadal sparkadal
I'm checked my setting I already set my provider as your suggest - kadal sparkadal
its work now after clear cache thank you!!!!!!! - kadal sparkadal

1 Answers

0
votes

username_canonical field should be "marc" too. username_canonical field contains canonical (lowercase) value of username field and is used to select user on login.