only active users should be able to login

This commit is contained in:
Sebastian Sdorra
2012-05-24 22:02:25 +02:00
parent 94c7f96eeb
commit 1ef15fd281
2 changed files with 117 additions and 66 deletions

View File

@@ -105,7 +105,8 @@ public class DefaultAuthenticationHandler implements AuthenticationHandler
AuthenticationResult result = null;
User user = userManager.get(username);
if (user != null)
// return not found, if the user is not active
if (user != null && user.isActive())
{
if (userManager.getDefaultType().equals(user.getType()))
{