diff --git a/src/main/java/net/Broken/RestApi/UserManagerAPIController.java b/src/main/java/net/Broken/RestApi/UserManagerAPIController.java index e98dd66..f7a7d45 100644 --- a/src/main/java/net/Broken/RestApi/UserManagerAPIController.java +++ b/src/main/java/net/Broken/RestApi/UserManagerAPIController.java @@ -127,7 +127,7 @@ public class UserManagerAPIController { public ResponseEntity oauthLogin(@RequestParam(value = "token") String discordToken){ logger.debug(discordToken); UserEntity user = Oauth.getInstance().getUserEntity(discordToken, userRepository); - logger.debug(user.getName()); + logger.info("OAuth login for " + user.getName()); return new ResponseEntity<>(new UserConnectionData(true, user.getName(), user.getApiToken(), ""), HttpStatus.OK); diff --git a/src/main/java/net/Broken/webView/RegisterWebView.java b/src/main/java/net/Broken/webView/RegisterWebView.java index 49e403b..1aa5551 100644 --- a/src/main/java/net/Broken/webView/RegisterWebView.java +++ b/src/main/java/net/Broken/webView/RegisterWebView.java @@ -14,6 +14,7 @@ public class RegisterWebView { @RequestMapping("/register") public String music(@RequestParam(value="id", required = true, defaultValue = "") String id, Model model){ model.addAttribute("id", id); + model.addAttribute("redirect_url", System.getenv("OAUTH_URL")); return CheckPage.getPageIfReady("register"); } } diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml index 7b81aed..16b037f 100644 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml @@ -25,7 +25,7 @@ - + diff --git a/src/main/resources/templates/register.html b/src/main/resources/templates/register.html index 96f1ab7..d4b9df0 100644 --- a/src/main/resources/templates/register.html +++ b/src/main/resources/templates/register.html @@ -14,7 +14,7 @@ -
...
+
...