diff --git a/src/freedombone-app-postactiv b/src/freedombone-app-postactiv index 38068b88..017bc7d5 100755 --- a/src/freedombone-app-postactiv +++ b/src/freedombone-app-postactiv @@ -124,7 +124,7 @@ function install_interactive_postactiv { dialog --title $"Domain name validation" --msgbox "$TEST_DOMAIN_NAME" 15 50 else if [[ $DDNS_PROVIDER == "default@freedns.afraid.org" ]]; then - POSTACTIV_CODE=$(cat $data | sed -n 4p) + POSTACTIV_CODE=$(cat $data | sed -n 2p) validate_freedns_code "$POSTACTIV_CODE" if [ ! $VALID_CODE ]; then POSTACTIV_DOMAIN_NAME= diff --git a/src/freedombone-config b/src/freedombone-config index dc2b2b16..c62320d5 100755 --- a/src/freedombone-config +++ b/src/freedombone-config @@ -758,7 +758,7 @@ function validate_freedns_code { dialog --title $"Invalid FreeDNS Code" --msgbox "$FREEDNS_MESSAGE" 10 70 VALID_CODE= fi - if [ ${#freedns_code} -lt 25 ]; then + if [ ${#freedns_code} -lt 30 ]; then dialog --title $"Invalid FreeDNS Code" --msgbox $'FreeDNS code is too short. Did you enter the entire code?' 6 70 VALID_CODE= fi diff --git a/src/freedombone-utils-validation b/src/freedombone-utils-validation index 6afe5a39..a13b1cf0 100755 --- a/src/freedombone-utils-validation +++ b/src/freedombone-utils-validation @@ -53,7 +53,7 @@ function validate_freedns_code { dialog --title $"Invalid FreeDNS Code" --msgbox "$FREEDNS_MESSAGE" 10 70 VALID_CODE= fi - if [ ${#freedns_code} -lt 25 ]; then + if [ ${#freedns_code} -lt 30 ]; then dialog --title $"Invalid FreeDNS Code" --msgbox $'FreeDNS code is too short. Did you enter the entire code?' 6 70 VALID_CODE= fi