File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 67
67
run : |
68
68
export CURLOPTS="--fail -sq -m 30 -b /tmp/cookiejar"
69
69
# Make an initial request which will get us a session id, and grab the csrf token from it
70
- CSRFTOKEN=$(curl $CURLOPTS -c $COOKIEJAR "http://localhost/domjudge/login" | sed -n 's/.*_csrf_token.*value="\(.*\)".*/\1/p')
70
+ CSRFTOKEN=$(curl $CURLOPTS -c /tmp/cookiejar "http://localhost/domjudge/login" | sed -n 's/.*_csrf_token.*value="\(.*\)".*/\1/p')
71
71
# Make a second request with our session + csrf token to actually log in
72
- curl $CURLOPTS -c $COOKIEJAR -F "_csrf_token=$CSRFTOKEN" -F "_username=admin" -F "_password=password" "http://localhost/domjudge/login"
72
+ curl $CURLOPTS -c /tmp/cookiejar -F "_csrf_token=$CSRFTOKEN" -F "_username=admin" -F "_password=password" "http://localhost/domjudge/login"
73
73
# Send a general clarification to later test if we see the event.
74
74
curl $CURLOPTS -F "sendto=" -F "problem=1-" -F "bodytext=Testing" -F "submit=Send" \
75
75
"http://localhost/domjudge/jury/clarifications/send" -o /dev/null
You can’t perform that action at this time.
0 commit comments