Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Signup
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2020-04-22 17:47:52
Hi @ll
I recently started to learn the new code TTv3, and I have a small question. When a new user registers he is automatically confirmed. Isn't it better to set the pending to have better control over who has registered?
I have tried some settings in the config regarding invites, that means Confirm Email on False and Admin Confirm on True, but the new user is automatically confirmed.
Is that what you wanted ? With Confirm Email this is in : status pending or status confirmed .
Isn't it better to set new users to pending at Signup ?
I ask this question for me to learn to minimize risk.
About every answer I am grateful.

With best regards

KD
2020-04-22 19:49:40
try below. Keep CONFIRMEMAIL as true always. The site sends a different email depending on config settings. Its been a while, but I believe you only set confirmemail to false if you want an open site registration with no confirmation of any kind
$site_config['CONFIRMEMAIL'] = true;        //Enable / Disable Signup confirmation email
$site_config['ACONFIRM'] = true;            //Enable / Disable ADMIN CONFIRM ACCOUNT SIGNUP


here is where the email changes depending on config settings. this is account-confirm-ok.php
        if (!$site_config["ACONFIRM"]) {
           print(T_("EMAIL_CHANGE_SEND"). " (" . htmlspecialchars($email) . "). " .T_("ACCOUNT_CONFIRM_SENT_TO_ADDY_REST"). " <br/ >");
       } else {
           print(T_("EMAIL_CHANGE_SEND"). " (" . htmlspecialchars($email) . "). " .T_("ACCOUNT_CONFIRM_SENT_TO_ADDY_ADMIN"). " <br/ >");
       }

here is account-signup.php
    //ADMIN CONFIRM
   if ($site_config["ACONFIRM"]) {
       $body = T_("YOUR_ACCOUNT_AT")." ".$site_config['SITENAME']." ".T_("HAS_BEEN_CREATED_YOU_WILL_HAVE_TO_WAIT")."\n\n".$site_config['SITENAME']." ".T_("ADMIN");
   }else{//NO ADMIN CONFIRM, BUT EMAIL CONFIRM
       $body = T_("YOUR_ACCOUNT_AT")." ".$site_config['SITENAME']." ".T_("HAS_BEEN_APPROVED_EMAIL")."\n\n    ".$site_config['SITEURL']."/account-confirm.php?id=$id&secret=$psecret\n\n".T_("HAS_BEEN_APPROVED_EMAIL_AFTER")."\n\n    ".T_("HAS_BEEN_APPROVED_EMAIL_DELETED")."\n\n".$site_config['SITENAME']." ".T_("ADMIN");

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728