Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong user instance while password reset #102

Open
remoteclient opened this issue Feb 22, 2016 · 0 comments
Open

wrong user instance while password reset #102

remoteclient opened this issue Feb 22, 2016 · 0 comments

Comments

@remoteclient
Copy link

Hello everybody,

I am on Symfony 2.7.7 and using this bundle. Everything works as expected except for the reset. I have two user class. One is the SecurityUser user for admins and the other one is the employee.

If I click on "Forgotten Password" and enter the username or the email of an SecurityUser all goes right.
If I do the same with an Employee I recieve the email with the token. When I follow the link with the token I get following error message:

The form's view data is expected to be an instance of class MWS\SecurityBundle\Entity\SecurityUser, but is an instance of class MWS\JescEmployeeBundle\Entity\Employee. You can avoid this error by setting the "data_class" option to null or by adding a view transformer that transforms an instance of class MWS\JescEmployeeBundle\Entity\Employee to an instance of MWS\SecurityBundle\Entity\SecurityUser.

Can anybody conform this issue and know how to solve it?

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

No branches or pull requests

1 participant