diff options
author | Ugnich Anton | 2013-07-21 23:36:07 +0700 |
---|---|---|
committer | Ugnich Anton | 2013-07-21 23:36:07 +0700 |
commit | c37d78969da40f4238573bbee2c533c878ea3844 (patch) | |
tree | 02a592aa81ad7bfdffdf46b99527bd596a791580 /src/java/com/juick/http/www/SignUp.java | |
parent | 3692155bcddc13886bbbc0fd89bb4a4e3a24c88d (diff) |
Signup/Login bugfixes
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; } |