Hide successful login/logout messages to avoid cluttering the terminal

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2024-06-19 22:19:54 +02:00
parent 520641fa5e
commit a2951cd3b8
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -94,9 +94,6 @@ Authentication() {
LoginAPI
done
# Loop exited, authentication was successful
echo "Authentication successful."
}
LoginAPI() {
@ -119,7 +116,6 @@ LogoutAPI() {
deleteResponse=$(curl -skS -o /dev/null -w "%{http_code}" -X DELETE "${API_URL}auth" -H "Accept: application/json" -H "sid: ${SID}")
case "${deleteResponse}" in
"204") printf "%b" "Session successfully deleted.\n";;
"401") printf "%b" "Logout attempt without a valid session. Unauthorized!\n";;
esac;
fi