Update dns_hover.sh

More formating
This commit is contained in:
ddarek2000 2020-08-31 14:23:05 -04:00 committed by GitHub
parent 3f95564c06
commit 621325dc83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,9 +150,9 @@ dns_hover_rm() {
# returns 0 success # returns 0 success
_HOVER_login() { _HOVER_login() {
#save the credentials to the account conf file required for testing #save the credentials to the account conf file required for testing
# _saveaccountconf_mutable HOVER_Username "$HOVER_Username" # _saveaccountconf_mutable HOVER_Username "$HOVER_Username"
# _saveaccountconf_mutable HOVER_Password "$HOVER_Password" # _saveaccountconf_mutable HOVER_Password "$HOVER_Password"
if [ -z "$HOVER_COOKIE" ]; then if [ -z "$HOVER_COOKIE" ]; then
@ -167,7 +167,6 @@ _HOVER_login() {
HOVER_Password="" HOVER_Password=""
return 1 return 1
else else
_debug "Login to HOVER as user $HOVER_Username" _debug "Login to HOVER as user $HOVER_Username"
_cf_rest POST "login" "username=$(printf '%s' "$HOVER_Username")&password=$(printf '%s' "$HOVER_Password")" _cf_rest POST "login" "username=$(printf '%s' "$HOVER_Username")&password=$(printf '%s' "$HOVER_Password")"
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
@ -193,8 +192,8 @@ _HOVER_login() {
return 0 return 0
fi fi
_debug "HOVER login cookies: $HOVER_COOKIE (cached = $using_cached_cookies)" _debug "HOVER login cookies: $HOVER_COOKIE (cached = $using_cached_cookies)"
return 1 return 1
} }