Commit 2b957369 authored by Brian Major's avatar Brian Major
Browse files

t72306 - check for empty password string

parent a6bc9002
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -153,9 +153,9 @@ public class LoginServlet<T extends Principal> extends HttpServlet
            String userID = request.getParameter("username");
            String userID = request.getParameter("username");
            String password = request.getParameter("password");
            String password = request.getParameter("password");


            if (userID == null)
            if (userID == null || userID.length() == 0)
                throw new IllegalArgumentException("Missing username");
                throw new IllegalArgumentException("Missing username");
            if (password == null)
            if (password == null || password.length() == 0)
                throw new IllegalArgumentException("Missing password");
                throw new IllegalArgumentException("Missing password");


            userID = userID.trim();
            userID = userID.trim();