Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vetle.Hjelmtvedt
inf226-2021-inchat
Commits
52cf658a
Commit
52cf658a
authored
Nov 11, 2021
by
vehjelmtvedt
Browse files
removed unused code
parent
79a41286
Changes
2
Hide whitespace changes
Inline
Side-by-side
production.db
View file @
52cf658a
No preview for this file type
src/main/java/inf226/inchat/Handler.java
View file @
52cf658a
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment