if (remoteUser == null)
{
try
{
registration.context.login(request, response, credentials);
fireEvent(new AuthenticationEvent(AuthenticationEventType.LOGIN,
request, response, credentials.getUsername(), credentials, registration.context));
}
catch (AuthenticationException ae)
{
fireEvent(new AuthenticationEvent(AuthenticationEventType.FAILED,
request, response, credentials.getUsername(), credentials, registration.context));
throw ae;
}
}
else