Browse Source
Merge pull request #3043 from robertoetcheverryr/dev
Added check for Authentication failure in dns_dynu module
none
neil
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
dnsapi/dns_dynu.sh
|
@ -216,6 +216,10 @@ _dynu_authentication() { |
|
|
_err "Authentication failed." |
|
|
_err "Authentication failed." |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
if _contains "$response" "Authentication Exception"; then |
|
|
|
|
|
_err "Authentication failed." |
|
|
|
|
|
return 1 |
|
|
|
|
|
fi |
|
|
if _contains "$response" "access_token"; then |
|
|
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) |
|
|
Dynu_Token=$(printf "%s" "$response" | tr -d "{}" | cut -d , -f 1 | cut -d : -f 2 | cut -d '"' -f 2) |
|
|
fi |
|
|
fi |
|
|