From: Paul Hänsch Date: Tue, 9 Apr 2024 14:46:33 +0000 (+0200) Subject: offer invitation links if email is not required X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=397847dd01a44b7a5a26b6c6d16a61a42079a542;p=cgilite offer invitation links if email is not required --- diff --git a/users.sh b/users.sh index c924789..32299ff 100755 --- a/users.sh +++ b/users.sh @@ -621,7 +621,7 @@ w_user_invite(){ if [ "$(GET user_confirm)" ]; then w_user_confirm - elif [ "$USER_ID" -a "$SENDMAIL" ]; then + elif [ "$USER_ID" -a "$USER_REQUIREEMAIL" = true ]; then w_user_invite_email elif [ "$USER_ID" ]; then uid="$(timeid)"