Commit 0cad5b7f authored by Matt Tucker's avatar Matt Tucker Committed by matt

Don't allow blank password.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1122 b35dd754-fafc-0310-a699-88a17e54d16e
parent dfe6e175
...@@ -61,7 +61,7 @@ public class LdapAuthProvider implements AuthProvider { ...@@ -61,7 +61,7 @@ public class LdapAuthProvider implements AuthProvider {
} }
public void authenticate(String username, String password) throws UnauthorizedException { public void authenticate(String username, String password) throws UnauthorizedException {
if (username == null || password == null) { if (username == null || password == null || "".equals(password)) {
throw new UnauthorizedException(); throw new UnauthorizedException();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment