Skip to content

Commit

Permalink
v8.24
Browse files Browse the repository at this point in the history
- DietPi-DDNS | Hide "If no HTTP authentication is required, type in a "0" to skip the username." info in password input field for YDNS, as it always requires a password. Also assure it is not unset, in the unlikely case that the password is "0".
  • Loading branch information
MichaIng committed Nov 17, 2023
1 parent e2aab64 commit 64cf031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dietpi/dietpi-ddns
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,14 @@ Menu_Username()

# Add note for custom provider
local text="Please enter the $username to update your dynamic IP against your DDNS provider.\n - The colon character : is currently not supported!"
[[ $PROVIDER == 'No-IP' || $PROVIDER == 'OVH' ]] || text+='\nThis is used for HTTP authentication. If no HTTP authentication is required, type in a \"0\" to skip the username.'
[[ $PROVIDER == 'No-IP' || $PROVIDER == 'OVH' || $PROVIDER == 'YDNS' ]] || text+='\nThis is used for HTTP authentication. If no HTTP authentication is required, type in a \"0\" to skip the username.'

G_WHIP_DEFAULT_ITEM=$USERNAME
G_WHIP_INPUTBOX "$text" || return 1
USERNAME=$G_WHIP_RETURNED_VALUE

# Unset with custom provider when "0" is given
[[ $PROVIDER == 'No-IP' || $PROVIDER == 'OVH' || $USERNAME != 0 ]] || unset -v USERNAME
[[ $PROVIDER == 'No-IP' || $PROVIDER == 'OVH' || $PROVIDER == 'YDNS' || $USERNAME != 0 ]] || unset -v USERNAME
}

Menu_Password()
Expand Down

0 comments on commit 64cf031

Please sign in to comment.