From dea2ceacb693fb66704c0f7ce76d1ef379af3149 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Tue, 1 Jan 2019 23:38:37 +0100 Subject: [PATCH] Correct crash when you try to access to rank without logged --- src/main/java/net/Broken/webView/GeneralWebView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Broken/webView/GeneralWebView.java b/src/main/java/net/Broken/webView/GeneralWebView.java index 9564d13..54d5af8 100644 --- a/src/main/java/net/Broken/webView/GeneralWebView.java +++ b/src/main/java/net/Broken/webView/GeneralWebView.java @@ -153,7 +153,7 @@ public class GeneralWebView { @RequestMapping("/rank") - public String login(Model model, @CookieValue(value = "token") String token, @CookieValue(value = "guild", defaultValue = "") String cookieGuildId, @RequestParam(value = "guild", defaultValue = "") String praramGuildId){ + public String login(Model model, @CookieValue(value = "token",defaultValue = "1") String token, @CookieValue(value = "guild", defaultValue = "") String cookieGuildId, @RequestParam(value = "guild", defaultValue = "") String praramGuildId){ model.addAttribute("redirect_url", System.getenv("OAUTH_URL")); try { UserEntity userEntity = userUtils.getUserWithApiToken(userRepository, token);