Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
44743b5f
Unverified
Commit
44743b5f
authored
Jul 13, 2020
by
neil
Committed by
GitHub
Jul 13, 2020
Browse files
Merge pull request #3043 from robertoetcheverryr/dev
Added check for Authentication failure in dns_dynu module
parents
cda41deb
f8027658
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_dynu.sh
View file @
44743b5f
...
@@ -216,6 +216,10 @@ _dynu_authentication() {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment