diff options
author | Ugnich Anton | 2013-02-23 14:51:10 +0700 |
---|---|---|
committer | Ugnich Anton | 2013-02-23 14:51:10 +0700 |
commit | 19cf26ce2f8ee05fc8a9298e2c19b8fff589b8e6 (patch) | |
tree | 795b1a6bcdc3946c444709a3e1c68d67a64d5bb9 /src/java/com/juick/http/www/Login.java | |
parent | cdbf949013fe140fed0e5ad79ad6111c97ea07ad (diff) |
Yandex.Direct
Diffstat (limited to 'src/java/com/juick/http/www/Login.java')
-rw-r--r-- | src/java/com/juick/http/www/Login.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/juick/http/www/Login.java b/src/java/com/juick/http/www/Login.java index d50e6115..ba8fac7e 100644 --- a/src/java/com/juick/http/www/Login.java +++ b/src/java/com/juick/http/www/Login.java @@ -87,7 +87,7 @@ public class Login { protected void doPostLogin(Connection sql, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String username = request.getParameter("username"); String password = request.getParameter("password"); - if (username == null || password == null || username.length() > 32) { + if (username == null || password == null || username.length() > 32 || password.isEmpty()) { response.sendError(400); return; } |