My system has 2 subsystems. Each subsystem has different set of users. Each user has an extra field "SystemName" that can be used to know which system this user belongs to.
In the login forms (1 form for each subsystem) I added a hidden field specifying the type of the form (containing the SystemName value).
Generally, the check is rather simple:
if (user.systemName == params.systemName) {
proceed with regular login
} else {
throw standard login error
}
I tried putting that check to my custom DaoAuthenticationProvider but it has no access to "params.systemName".
Where do I put that code to make Acegi authenticate my users with this check?
Thanks in advance.