diff options
author | Vitaly Takmazov | 2019-12-20 16:38:08 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-12-20 16:38:08 +0300 |
commit | 432dee11864162d6700ce929e544bfd493087db4 (patch) | |
tree | c799c74580732ad8cf052dc2ccbf9e1dd5d39986 /src/main/java/com/juick/server/www | |
parent | 6447e2cf330f3e32f366b212eeec4e8c98e0416c (diff) |
Referer is wrong for apple sign in
Diffstat (limited to 'src/main/java/com/juick/server/www')
-rw-r--r-- | src/main/java/com/juick/server/www/controllers/SocialLogin.java | 2 |
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); |