Revision 51650
Added by Sofia Baltzi about 6 years ago
modules/uoa-user-management/trunk/src/main/java/eu/dnetlib/openaire/user/utils/LDAPActions.java | ||
---|---|---|
47 | 47 |
|
48 | 48 |
public Entry createUser(String username, String email, String firstName, String lastName, String institution, String password) throws Exception { |
49 | 49 |
|
50 |
if(!username.matches("^[a-zA-Z0-9][a-zA-Z0-9_-]{4,150}")){ |
|
50 |
if(!username.matches("^[a-zA-Z0-9][a-zA-Z0-9._-]{4,150}")){
|
|
51 | 51 |
throw new CustomLDAPException("Invalid username!"); |
52 | 52 |
} |
53 | 53 |
|
Also available in: Unified diff
Allow username with dots