1
0
mirror of https://github.com/QSCTech/zjunet.git synced 2026-01-22 19:54:48 +08:00

Merge pull request #51 from zjusbo/master

update logout() function to meet current website configuration. Previous...
This commit is contained in:
Zeno Zeng 2015-01-24 19:51:17 +08:00
commit 6a58107239

View File

@ -33,7 +33,7 @@ logout() {
PASSWORD=$2
echo "Logout: ${USERNAME}"
RESPONSE=$(curl "https://net.zju.edu.cn/cgi-bin/srun_portal" -H "Content-Type: application/x-www-form-urlencoded" -d "action=logout" -s)
RESPONSE=$(curl "https://net.zju.edu.cn/rad_online.php" -H "Content-Type: application/x-www-form-urlencoded" -d "action=auto_dm&username=${USERNAME}&password=${PASSWORD}" -s)
case "${RESPONSE}" in
*ok*)