Browse Source

add follow on registration users config

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

5
src/application/controller/register.php

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

3
src/config-default.php

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