Browse Source

add follow on registration users config

main
ghost 3 years ago
parent
commit
6201fd6a04
  1. 5
      src/application/controller/register.php
  2. 1
      src/config-default.php

5
src/application/controller/register.php

@ -57,6 +57,11 @@ if (isset($_POST) && $_POST) { @@ -57,6 +57,11 @@ if (isset($_POST) && $_POST) {
// Post new user public key to the network
if ($transaction = $_twister->sendNewUserTransaction($userName)) {
// Auto follow users
if (APPLICATION_FOLLOW_ON_REGISTRATION){
$_twister->follow($userName, APPLICATION_FOLLOW_ON_REGISTRATION);
}
// Prepare Welcome page
$metaTitle = _('Welcome | Twisterarmy Cloud');

1
src/config-default.php

@ -24,3 +24,4 @@ define('TWISTER_PASSWORD', ''); @@ -24,3 +24,4 @@ define('TWISTER_PASSWORD', '');
// COMMON
define('APPLICATION_ALLOW_REGISTRATION', true);
define('APPLICATION_FOLLOW_ON_REGISTRATION', []);
Loading…
Cancel
Save