diff options
Diffstat (limited to 'src/java/com/juick/http/www/SignUp.java')
-rw-r--r-- | src/java/com/juick/http/www/SignUp.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java/com/juick/http/www/SignUp.java b/src/java/com/juick/http/www/SignUp.java index 46049451..3761c8d3 100644 --- a/src/java/com/juick/http/www/SignUp.java +++ b/src/java/com/juick/http/www/SignUp.java @@ -151,7 +151,7 @@ public class SignUp { uid = visitor.UID; } - if (uid == 0) { + if (uid <= 0) { response.sendError(HttpServletResponse.SC_FORBIDDEN); return; } @@ -172,8 +172,10 @@ public class SignUp { return; } + // CHECK USERNAME + uid = UserQueries.createUser(sql, username, password, lang); - if (uid == 0) { + if (uid <= 0) { response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); return; } |