From: Paul Hänsch Date: Thu, 7 Oct 2021 22:31:46 +0000 (+0200) Subject: cleaner display of activation link, include port number in activation link X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=343a22a944f0300c5518e346ee1a85581741027c;p=cgilite cleaner display of activation link, include port number in activation link --- diff --git a/users.sh b/users.sh index c13703b..eaf4c27 100755 --- a/users.sh +++ b/users.sh @@ -151,7 +151,7 @@ user_register(){ RELEASE "$user_db" debug "Sending Activation Link:" \ - "https://${HTTP_HOST%:*}/${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid")" + "https://${HTTP_HOST}${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid")" sendmail -t -f "$MAILFROM" <<-EOF From: ${MAILFROM} To: ${email} @@ -161,7 +161,7 @@ user_register(){ You can activate your account using this link: - https://${HTTP_HOST%:*}/${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid") + https://${HTTP_HOST}${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid") This registration link will expire after 24 hours. @@ -220,7 +220,7 @@ user_invite(){ >>"$user_db" RELEASE "$user_db" debug "Sending Invitation Link:" \ - "https://${HTTP_HOST%:*}/${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid")" + "https://${HTTP_HOST}${BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid")" sendmail -t -f "$MAILFROM" <<-EOF From: ${MAILFROM} To: ${email} @@ -232,7 +232,7 @@ user_invite(){ You can create your account using this link: - https://${HTTP_HOST%:*}/${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid") + https://${HTTP_HOST}${_BASE}${PATH_INFO}?user_confirm=${uid}+$(session_mac "$uid") This registration link will expire after 24 hours.