aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-12-20 16:38:08 +0300
committerGravatar Vitaly Takmazov2019-12-20 16:38:08 +0300
commit432dee11864162d6700ce929e544bfd493087db4 (patch)
treec799c74580732ad8cf052dc2ccbf9e1dd5d39986 /src
parent6447e2cf330f3e32f366b212eeec4e8c98e0416c (diff)
Referer is wrong for apple sign in
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/server/www/controllers/SocialLogin.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/server/www/controllers/SocialLogin.java b/src/main/java/com/juick/server/www/controllers/SocialLogin.java
index 92f83c4e..eb1e3cfe 100644
--- a/src/main/java/com/juick/server/www/controllers/SocialLogin.java
+++ b/src/main/java/com/juick/server/www/controllers/SocialLogin.java
@@ -398,7 +398,7 @@ public class SocialLogin {
Cookie c = new Cookie("hash", userService.getHashByUID(user.getUid()));
c.setMaxAge(50 * 24 * 60 * 60);
response.addCookie(c);
- return "redirect:/" + Utils.getPreviousPageByRequest(request).orElse(StringUtils.EMPTY);
+ return "redirect:/";
} else {
String verificationCode = RandomStringUtils.randomAlphanumeric(8).toUpperCase();
emailService.addVerificationCode(null, email, verificationCode);