1

I'm using Symfony2 to authenticate users. And I have two databases to store user information, db1 and db2. The user table is stored in both databases, like username, password How can I authenticate a user using both databases?

1 Answer 1

1

You could create a custom user provider (and inject in it your 2 entity managers), you check the first database, if your user isn't in it you check the second one.

Sign up to request clarification or add additional context in comments.

1 Comment

so you can validate my answer maybe

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.