File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
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" 2>/dev/null | sed -n 's/.*_csrf_token.*value="\(.*\)".*/\1/p')
70
+ CSRFTOKEN=$(curl $CURLOPTS -c $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
72
curl $CURLOPTS -c $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.
You can’t perform that action at this time.
0 commit comments