]> git.plutz.net Git - cgilite/commitdiff
automatically swap in confirmation dialog for registration
authorPaul Hänsch <paul@plutz.net>
Wed, 22 Sep 2021 13:43:31 +0000 (15:43 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 22 Sep 2021 13:43:31 +0000 (15:43 +0200)
users.sh

index 33f0062d7832d510b8db9d25d2cb1fdcd9b20bec..1959e9de4b757084fad3d850b1b7b771517cb3c3 100755 (executable)
--- a/users.sh
+++ b/users.sh
@@ -259,7 +259,9 @@ user_init
 esac
 
 w_user_register(){
-  if [ "$USER_REGISTRATION" != true ]; then
+  if [ "$(GET user_confirm)" ]; then
+    w_user_confirm
+  elif [ "$USER_REGISTRATION" != true ]; then
     cat <<-EOF
        [div #user_register .disabled
        User Registration is disabled.