Commit 52cf658a authored by vehjelmtvedt's avatar vehjelmtvedt
Browse files

removed unused code

parent 79a41286
No preview for this file type
......@@ -153,34 +153,9 @@ public class Handler extends AbstractHandler
// This is a request to post something in the channel.
// Confirm that CSRF token matches session cookie
String token = request.getParameter("CSRFToken");
System.err.println("TOKEN: " + token);
System.err.println("SESSION ID: " + session.identity);
if (!session.identity.equals(UUID.fromString(request.getParameter("CSRFToken")))) {
System.err.println("CSRF ERROR!!!!!!!");
return;
}
if (!session.identity.equals(UUID.fromString(request.getParameter("CSRFToken")))) {return;}
if(request.getParameter("newmessage") != null) {
String message = (new Maybe<String>
(request.getParameter("message"))).get();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment