Unverified Commit 44743b5f authored by neil's avatar neil Committed by GitHub
Browse files

Merge pull request #3043 from robertoetcheverryr/dev

Added check for Authentication failure in dns_dynu module
parents cda41deb f8027658
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment