I am working on a application using multiple subdomains :
- .domain.com
- admin.domain.com
{username}.domain.com
and so on.
I am using the FOSUserBundle to handle my users and I am wondering how I could force users to login only on the main .domain.com.
For example, when a user is trying to access the administration, redirect him to http://domain.com/login instead of http://admin.domain.com/login.
I was thinking about a LoginListener somewhere, but I have no idea where I could create it and how to override the login process.
Any ideas ?? Thank you !