Commit c2f08789 by tdgiang

Fix duplicated cookie-file arg in Task 7's verification curl command

parent 162461d0
...@@ -1630,7 +1630,7 @@ curl -sS -c /tmp/plan-cookie-cp.txt -b /tmp/plan-cookie-cp.txt -o /dev/null \ ...@@ -1630,7 +1630,7 @@ curl -sS -c /tmp/plan-cookie-cp.txt -b /tmp/plan-cookie-cp.txt -o /dev/null \
-X POST http://localhost:8092/admin/login -d "username=changepasstestuser&password=oldpass123" -X POST http://localhost:8092/admin/login -d "username=changepasstestuser&password=oldpass123"
echo "wrong current password -> expect error shown, no change:" echo "wrong current password -> expect error shown, no change:"
curl -sS -b /tmp/plan-cookie-cp.txt /tmp/plan-cookie-cp.txt http://localhost:8092/admin/account/password \ curl -sS -b /tmp/plan-cookie-cp.txt http://localhost:8092/admin/account/password \
-X POST -d "currentPassword=wrongcurrent&newPassword=newpass456" -o /tmp/cp-wrong-body.html -X POST -d "currentPassword=wrongcurrent&newPassword=newpass456" -o /tmp/cp-wrong-body.html
grep -c "không đúng" /tmp/cp-wrong-body.html grep -c "không đúng" /tmp/cp-wrong-body.html
......
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