[FORUM] [ROSLOGIN] Add new users to phpBB's NEWLY_REGISTERED group, which automatically transitions to REGISTERED after X posts.

We can now set different permissions for newly registered and established users and hopefully combat our spam problems this way.
This commit is contained in:
Colin Finck 2018-10-24 02:42:07 +02:00
parent fae7a34f50
commit 2223807233
No known key found for this signature in database
GPG Key ID: 1BA74E70456BA1A9

View File

@ -47,14 +47,14 @@
/**
* Generate an array for the user_add() function.
* Taken from the apache.php authentication module and adapted (add an E-Mail address instead of password).
* Taken from the apache.php authentication module and adapted (different group and add an E-Mail address instead of password).
*/
private function _user_row($username, $email)
{
// first retrieve default group id
$sql = 'SELECT group_id
FROM ' . GROUPS_TABLE . "
WHERE group_name = '" . $this->db->sql_escape('REGISTERED') . "'
$sql = "SELECT group_id
FROM " . GROUPS_TABLE . "
WHERE group_name = 'NEWLY_REGISTERED'
AND group_type = " . GROUP_SPECIAL;
$result = $this->db->sql_query($sql);
$row = $this->db->sql_fetchrow($result);