mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 08:55:44 +01:00
allow users without mail address
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -73,6 +73,18 @@ public class User
|
||||
*/
|
||||
public User() {}
|
||||
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
*
|
||||
* @param name
|
||||
*/
|
||||
public User(String name)
|
||||
{
|
||||
this.name = name;
|
||||
this.displayName = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
|
||||
@@ -153,7 +153,7 @@ Sonia.user.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
|
||||
},{
|
||||
fieldLabel: 'Mail',
|
||||
name: 'mail',
|
||||
allowBlank: false,
|
||||
allowBlank: true,
|
||||
vtype: 'email'
|
||||
}];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user