浏览代码

wordpress login form is required for commenters to login

Girish Ramakrishnan 10 年之前
父节点
当前提交
896e0d8e4f
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      start.sh

+ 3 - 2
start.sh

@@ -46,10 +46,11 @@ EOF
     $WP plugin install --activate --force /app/code/disable-wordpress-updates.zip
     $WP plugin install --activate --force /app/code/wp-mail-smtp.zip
 
-    $WP option update users_can_register 1
+    $WP option update users_can_register 1 # without this, nothing works
     $WP option update wpoa_cloudron_api_enabled 1
     $WP option update wpoa_new_user_role administrator # TODO: let the plugin determine this from the oauth profile
-    $WP option update wpoa_hide_wordpress_login_form 1
+    # $WP option update wpoa_hide_wordpress_login_form 1 # disabling this will make it impossible for users (commenters) to login
+    $WP option update wpoa_suppress_welcome_email 1
 else
     rm -rf /app/code/wp-content # upgrades & updates - starting out with existing data
     ln -sf /app/data/wp-content /app/code/wp-content