mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
only active users should be able to login
This commit is contained in:
@@ -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()))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user