]> git.plutz.net Git - cgilite/commitdiff
offer invitation links if email is not required
authorPaul Hänsch <paul@plutz.net>
Tue, 9 Apr 2024 14:46:33 +0000 (16:46 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 9 Apr 2024 14:46:33 +0000 (16:46 +0200)
users.sh

index c924789c2e25a6fcb71b7b60eb9980373e9038ec..32299ff1e3f97f26f7cb2c7d3860d56c1a3e83d2 100755 (executable)
--- a/users.sh
+++ b/users.sh
@@ -621,7 +621,7 @@ w_user_invite(){
 
   if [ "$(GET user_confirm)" ]; then
     w_user_confirm
 
   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)"
     w_user_invite_email
   elif [ "$USER_ID" ]; then
     uid="$(timeid)"