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

update logout() function to meet current website configuration. Previous version can not logout successfully.

This commit is contained in:
songbo 2015-01-24 16:40:53 +08:00
parent e423f6a6f8
commit 257a06a5d1

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*)