aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www/src/main/java')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/SignUp.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/SignUp.java b/juick-www/src/main/java/com/juick/www/controllers/SignUp.java
index 4746292b..f459f3c0 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/SignUp.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/SignUp.java
@@ -94,8 +94,8 @@ public class SignUp {
@RequestParam String type,
@RequestParam String hash,
@RequestParam String action,
- @RequestParam String username,
- @RequestParam String password) {
+ @RequestParam(required = false) String username,
+ @RequestParam(required = false) String password) {
com.juick.User visitor = UserUtils.getCurrentUser();
int uid = 0;
@@ -145,7 +145,7 @@ public class SignUp {
}
}
- if (visitor == null) {
+ if (visitor.getUid() == 0) {
hash = userService.getHashByUID(uid);
Cookie c = new Cookie("hash", hash);
c.setMaxAge(365 * 24 * 60 * 60);