From 7380b21ca08da499ec01ee0f4e4c807e20956be6 Mon Sep 17 00:00:00 2001
From: Paul-Christian Volkmer <paul-christian.volkmer@mni.thm.de>
Date: Wed, 5 Sep 2012 15:17:07 +0200
Subject: [PATCH] Added request mapping for guest login

This should send a generated random username to the client that is valid
for the current HTTP-Session.
---
 src/main/java/de/thm/arsnova/LoginController.java   | 2 +-
 src/main/java/de/thm/arsnova/SessionController.java | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/main/java/de/thm/arsnova/LoginController.java b/src/main/java/de/thm/arsnova/LoginController.java
index 1b8687e3..bc4e12b1 100644
--- a/src/main/java/de/thm/arsnova/LoginController.java
+++ b/src/main/java/de/thm/arsnova/LoginController.java
@@ -72,7 +72,7 @@ public class LoginController {
 		return new ModelAndView("redirect:/#auth/checkCasLogin/" + userHash);
 	}
 	
-	@RequestMapping(method = RequestMethod.GET, value = "/doOpenIdLogin")
+	@RequestMapping(method = RequestMethod.GET, value = "/doGuestLogin")
 	public ModelAndView doGuestLogin() {
 		return null;
 	}
diff --git a/src/main/java/de/thm/arsnova/SessionController.java b/src/main/java/de/thm/arsnova/SessionController.java
index 21c057db..7841e0eb 100644
--- a/src/main/java/de/thm/arsnova/SessionController.java
+++ b/src/main/java/de/thm/arsnova/SessionController.java
@@ -26,8 +26,6 @@ public class SessionController {
 		Session session = sessionService.getSession(sessionkey);
 		if (session != null) return session;
 		
-		authenticationService.getUsername();
-		
 		response.setStatus(HttpStatus.NOT_FOUND.value());
 		return null;
 	}
-- 
GitLab