Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
f1d0ae52
Commit
f1d0ae52
authored
Aug 07, 2019
by
Robert Czechowski
Browse files
Test task loading / saving
parent
c55c519c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/functions.rs
View file @
f1d0ae52
...
...
@@ -379,7 +379,7 @@ pub fn save_submission<T: MedalConnection>(conn: &T, task_id: i32, session_token
.ok_or
(
MedalError
::
AccessDenied
)
?
;
// TODO SessionTimeout
if
session
.csrf_token
!=
csrf_token
{
return
Err
(
MedalError
::
AccessDenied
);
//
CsrfError
return
Err
(
MedalError
::
CsrfError
);
}
let
submission
=
Submission
{
id
:
None
,
...
...
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