aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-10 17:42:13 -0700
committerfriendica <info@friendica.com>2014-09-10 17:42:13 -0700
commit6ab21b3d4f3b3cde6e967257490781815dbec103 (patch)
tree69c87d4141dbe669e28f9b1c4b451f0fc1504dc4
parent79bd45163156b30de0c102fb55181f08c756634f (diff)
downloadvolse-hubzilla-6ab21b3d4f3b3cde6e967257490781815dbec103.tar.gz
volse-hubzilla-6ab21b3d4f3b3cde6e967257490781815dbec103.tar.bz2
volse-hubzilla-6ab21b3d4f3b3cde6e967257490781815dbec103.zip
make verify_email the default for new installs (at least English installs), and provide a setting on the admin page for it.
-rw-r--r--mod/admin.php4
-rw-r--r--view/en/htconfig.tpl5
-rwxr-xr-xview/tpl/admin_site.tpl1
3 files changed, 9 insertions, 1 deletions
diff --git a/mod/admin.php b/mod/admin.php
index 48b342d4e..5bb97d158 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -267,7 +267,7 @@ function admin_page_site_post(&$a){
$maxloadavg = ((x($_POST,'maxloadavg'))? intval(trim($_POST['maxloadavg'])) : 50);
$feed_contacts = ((x($_POST,'feed_contacts')) ? intval($_POST['feed_contacts']) : 0);
$diaspora_enabled = ((x($_POST,'diaspora_enabled')) ? intval($_POST['diaspora_enabled']) : 0);
-
+ $verify_email = ((x($_POST,'verify_email')) ? 1 : 0);
set_config('system','feed_contacts',$feed_contacts);
set_config('system','diaspora_enabled',$diaspora_enabled);
@@ -276,6 +276,7 @@ function admin_page_site_post(&$a){
set_config('system','maxloadavg',$maxloadavg);
set_config('system','sitename',$sitename);
set_config('system','no_login_on_homepage',$no_login_on_homepage);
+ set_config('system','verify_email',$verify_email);
if ($banner=="") {
del_config('system','banner');
@@ -436,6 +437,7 @@ function admin_page_site(&$a) {
'$allowed_sites' => array('allowed_sites', t("Allowed friend domains"), get_config('system','allowed_sites'), t("Comma separated list of domains which are allowed to establish friendships with this site. Wildcards are accepted. Empty to allow any domains")),
'$allowed_email' => array('allowed_email', t("Allowed email domains"), get_config('system','allowed_email'), t("Comma separated list of domains which are allowed in email addresses for registrations to this site. Wildcards are accepted. Empty to allow any domains")),
'$block_public' => array('block_public', t("Block public"), get_config('system','block_public'), t("Check to block public access to all otherwise public personal pages on this site unless you are currently logged in.")),
+ '$verify_email' => array('verify_email', t("Verify Email Addresses"), get_config('system','verify_email'), t("Check to verify email addresses used in account registration (recommended).")),
'$force_publish' => array('publish_all', t("Force publish"), get_config('system','publish_all'), t("Check to force all profiles on this site to be listed in the site directory.")),
'$disable_discover_tab' => array('disable_discover_tab', t("Disable discovery tab"), get_config('system','disable_discover_tab'), t("Remove the tab in the network view with public content pulled from sources chosen for this site.")),
'$no_login_on_homepage' => array('no_login_on_homepage', t("No login on Homepage"), get_config('system','no_login_on_homepage'), t("Check to hide the login form from your sites homepage when visitors arrive who are not logged in (e.g. when you put the content of the homepage in via the site channel).")),
diff --git a/view/en/htconfig.tpl b/view/en/htconfig.tpl
index 9377472bd..550b018fe 100644
--- a/view/en/htconfig.tpl
+++ b/view/en/htconfig.tpl
@@ -45,6 +45,11 @@ $a->config['system']['register_policy'] = REGISTER_OPEN;
$a->config['system']['register_text'] = '';
$a->config['system']['admin_email'] = '{{$adminmail}}';
+// Recommend you leave this set to 1. Set to 0 to let people register without
+// proving they own the email address they register with.
+
+$a->config['system']['verify_email'] = 1;
+
// Site access restrictions. By default we will create private sites.
// Your choices are ACCESS_PRIVATE, ACCESS_PAID, ACCESS_TIERED, and ACCESS_FREE.
diff --git a/view/tpl/admin_site.tpl b/view/tpl/admin_site.tpl
index 930486b5f..788fef457 100755
--- a/view/tpl/admin_site.tpl
+++ b/view/tpl/admin_site.tpl
@@ -65,6 +65,7 @@
<h3>{{$corporate}}</h3>
{{include file="field_checkbox.tpl" field=$block_public}}
+ {{include file="field_checkbox.tpl" field=$verify_email}}
{{include file="field_checkbox.tpl" field=$diaspora_enabled}}
{{include file="field_checkbox.tpl" field=$feed_contacts}}
{{include file="field_checkbox.tpl" field=$force_publish}}