allow users without mail address

This commit is contained in:
Sebastian Sdorra
2011-01-02 12:41:19 +01:00
parent 2baf53d697
commit 3aee307af0
3 changed files with 14 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ public class PAMAuthenticationHandler implements AuthenticationHandler
if (unixUser != null)
{
User user = new User(username, username, null);
User user = new User(username);
user.setAdmin(isAdmin(unixUser));
result = new AuthenticationResult(user);