mirror of
https://github.com/QSCTech/zjunet.git
synced 2026-01-23 04:04:48 +08:00
update logout() function to meet current website configuration. Previous version can not logout successfully.
This commit is contained in:
parent
e423f6a6f8
commit
257a06a5d1
@ -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*)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user