aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Login.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2013-02-23 14:51:10 +0700
committerGravatar Ugnich Anton2013-02-23 14:51:10 +0700
commit19cf26ce2f8ee05fc8a9298e2c19b8fff589b8e6 (patch)
tree795b1a6bcdc3946c444709a3e1c68d67a64d5bb9 /src/java/com/juick/http/www/Login.java
parentcdbf949013fe140fed0e5ad79ad6111c97ea07ad (diff)
Yandex.Direct
Diffstat (limited to 'src/java/com/juick/http/www/Login.java')
-rw-r--r--src/java/com/juick/http/www/Login.java2
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;
}