aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Login.java
diff options
context:
space:
mode:
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;
}