Skip to content
Snippets Groups Projects
Commit 9cdc6916 authored by Julian Dehne's avatar Julian Dehne
Browse files

Merge remote-tracking branch 'origin/integrating_martins_module_#8' into...

Merge remote-tracking branch 'origin/integrating_martins_module_#8' into integrating_martins_module_#8
parents abc34716 ef845de5
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,8 @@ public class SessionExistsFilter implements Filter {
Object attribute = request1.getSession().getAttribute(GFContexts.USEREMAIL);
if (attribute == null) {
//redirectToLogin(request, response);
request1.getSession().setAttribute(GFContexts.USEREMAIL, "vodkas@yolo.com");
redirectToLogin(request, response);
//request1.getSession().setAttribute(GFContexts.USEREMAIL, "vodkas@yolo.com");
chain.doFilter(request,response);
} else {
final ServiceLocator locator = ServiceLocatorUtilities.bind(new GFApplicationBinder());
......
......@@ -9,6 +9,7 @@ import unipotsdam.gf.interfaces.ICommunication;
import unipotsdam.gf.modules.communication.service.CommunicationService;
import unipotsdam.gf.session.GFContexts;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
......@@ -21,6 +22,9 @@ public class ChatWindow extends SimpleTagSupport {
private String orientation;
@Inject
private ICommunication communicationService;
public void doTag() throws IOException {
final ServiceLocator locator = ServiceLocatorUtilities.bind(new GFApplicationBinder());
......@@ -31,7 +35,7 @@ public class ChatWindow extends SimpleTagSupport {
/*String token = request.getParameter("token"); */
String projectId = request.getParameter("projectName");
ICommunication communicationService = new CommunicationService();
String chatRoomLink = communicationService.getChatRoomLink(request.getSession().getAttribute(GFContexts
.USEREMAIL).toString(), projectId);
log.debug("ChatRoomLink for ChatWindow: {}", chatRoomLink);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment