Commit f1d0ae52 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Test task loading / saving

parent c55c519c
......@@ -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,
......
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