Commit d7de03a9 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Better check for "blank" passwords -- don't allow passwords that are all whitespace.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1165 b35dd754-fafc-0310-a699-88a17e54d16e
parent e25506e1
...@@ -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 || "".equals(password)) { if (username == null || password == null || "".equals(password.trim())) {
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