Added check for Authentication failure in dns_dynu module

This commit is contained in:
robertoetcheverryr 2020-07-12 23:43:03 -03:00
parent cda41debfc
commit f80276584f

View File

@ -216,6 +216,10 @@ _dynu_authentication() {
_err "Authentication failed."
return 1
fi
if _contains "$response" "Authentication Exception"; then
_err "Authentication failed."
return 1
fi
if _contains "$response" "access_token"; then
Dynu_Token=$(printf "%s" "$response" | tr -d "{}" | cut -d , -f 1 | cut -d : -f 2 | cut -d '"' -f 2)
fi