Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
49094120
Unverified
Commit
49094120
authored
Jul 16, 2020
by
Viktor Szépe
Committed by
GitHub
Jul 16, 2020
Browse files
Fix SC2236
parent
fe4111a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_cyon.sh
View file @
49094120
...
...
@@ -66,7 +66,7 @@ _cyon_load_credentials() {
_debug
"Save credentials to account.conf"
_saveaccountconf CY_Username
"
${
CY_Username
}
"
_saveaccountconf CY_Password_B64
"
$CY_Password_B64
"
if
[
!
-z
"
${
CY_OTP_Secret
}
"
]
;
then
if
[
-n
"
${
CY_OTP_Secret
}
"
]
;
then
_saveaccountconf CY_OTP_Secret
"
$CY_OTP_Secret
"
else
_clearaccountconf CY_OTP_Secret
...
...
@@ -164,7 +164,7 @@ _cyon_login() {
# todo: instead of just checking if the env variable is defined, check if we actually need to do a 2FA auth request.
# 2FA authentication with OTP?
if
[
!
-z
"
${
CY_OTP_Secret
}
"
]
;
then
if
[
-n
"
${
CY_OTP_Secret
}
"
]
;
then
_info
" - Authorising with OTP code..."
if
!
_exists oathtool
;
then
...
...
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