Revision 41974
Added by Nikon Gasparis about 8 years ago
Login.java | ||
---|---|---|
63 | 63 |
if(this.email_username == null || this.email_username.trim().equals("")) |
64 | 64 |
return; |
65 | 65 |
|
66 |
|
|
67 | 66 |
String username = this.email_username; |
68 | 67 |
|
69 | 68 |
Pattern rfc2822 = Pattern.compile("^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"); |
... | ... | |
72 | 71 |
this.email_username = this.getUserAPI().getEmailFromUsername(this.getEmail()); |
73 | 72 |
} |
74 | 73 |
|
74 |
if (this.getValidatorWebAPI().isUserBlacklisted(this.email_username)) { |
|
75 |
logger.debug("user is blacklisted"); |
|
76 |
this.addActionError("Your account is banned!"); |
|
77 |
return; |
|
78 |
} |
|
79 |
|
|
75 | 80 |
if (this.email_username == null) { |
76 | 81 |
this.email_username = username; |
77 | 82 |
this.addActionError(this.getText("login.userNotExists")); |
Also available in: Unified diff
updated dependencies for uoa to 1.2.0
added support for user blacklisting