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:
commit
6a58107239
@ -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