cleanup
This commit is contained in:
parent
167d452d67
commit
67a7df4487
@ -54,7 +54,6 @@ public class RedditController {
|
|||||||
public final String redditLogin() {
|
public final String redditLogin() {
|
||||||
final JsonNode node = redditRestTemplate.getForObject("https://oauth.reddit.com/api/v1/me", JsonNode.class);
|
final JsonNode node = redditRestTemplate.getForObject("https://oauth.reddit.com/api/v1/me", JsonNode.class);
|
||||||
loadAuthentication(node.get("name").asText(), redditRestTemplate.getAccessToken());
|
loadAuthentication(node.get("name").asText(), redditRestTemplate.getAccessToken());
|
||||||
System.out.println(SecurityContextHolder.getContext().getAuthentication().toString());
|
|
||||||
return "redirect:home.html";
|
return "redirect:home.html";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,8 +71,6 @@ public class RedditController {
|
|||||||
|
|
||||||
@RequestMapping("/post")
|
@RequestMapping("/post")
|
||||||
public final String showSubmissionForm(final Model model) {
|
public final String showSubmissionForm(final Model model) {
|
||||||
System.out.println(SecurityContextHolder.getContext().getAuthentication().toString());
|
|
||||||
|
|
||||||
final boolean isCaptchaNeeded = getCurrentUser().isCaptchaNeeded();
|
final boolean isCaptchaNeeded = getCurrentUser().isCaptchaNeeded();
|
||||||
if (isCaptchaNeeded) {
|
if (isCaptchaNeeded) {
|
||||||
final String iden = getNewCaptcha();
|
final String iden = getNewCaptcha();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user