Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Member role being assigned during registration

I'm currently being bombarded by spam in my forum, so I'm going to change it to require e-mail verification.

The approach I thought I'd take is have all new members assigned to a new role which is view only. Then on verification they they have access to create new posts.

The two roles in question are:

  • Member - id 3 (Existing, and I want to leave as is)
  • New member - id 11 (New - new applicants should be assigned to it)

This is what my config looks like:

$Configuration['Garden']['Registration']['Method'] = 'Captcha';
$Configuration['Garden']['Registration']['DefaultRoles'] = array('11');
$Configuration['Garden']['Registration']['ApplicantRoleID'] = '11';
$Configuration['Garden']['Registration']['ConfirmEmail'] = '1';
$Configuration['Garden']['Registration']['InviteExpiration'] = '1 week';
$Configuration['Garden']['Registration']['InviteRoles']['1'] = '0';
$Configuration['Garden']['Registration']['InviteRoles']['3'] = '0';
$Configuration['Garden']['Registration']['InviteRoles']['4'] = '0';
$Configuration['Garden']['Registration']['InviteRoles']['6'] = '0';
$Configuration['Garden']['Registration']['InviteRoles']['7'] = '0';
$Configuration['Garden']['Registration']['InviteRoles']['8'] = '0';
$Configuration['Garden']['Registration']['InviteRoles']['9'] = '0';
$Configuration['Garden']['Registration']['InviteRoles']['10'] = '0';

However, despite the fact that the default roles and applicate role id are both 11, both the Member and New member roles is being assigned to the new signups, so they can post immediately. I don't understand why the Member role is being assigned to the new sign ups.

A follow up question - when the user verifies their e-mail address, what defines the role that they will be assigned?

Does anyone have any help they can offer?

Thanks,
Allan

Tagged:

Answers

  • Options

    @allanj said:
    I'm currently being bombarded by spam in my forum, so I'm going to change it to require e-mail verification.

    The approach I thought I'd take is have all new members assigned to a new role which is view only. Then on verification they they have access to create new posts.

    The two roles in question are:

    • Member - id 3 (Existing, and I want to leave as is)
    • New member - id 11 (New - new applicants should be assigned to it)

    This is what my config looks like:

    $Configuration['Garden']['Registration']['Method'] = 'Captcha';
    $Configuration['Garden']['Registration']['DefaultRoles'] = array('11');
    $Configuration['Garden']['Registration']['ApplicantRoleID'] = '11';
    $Configuration['Garden']['Registration']['ConfirmEmail'] = '1';
    $Configuration['Garden']['Registration']['InviteExpiration'] = '1 week';
    $Configuration['Garden']['Registration']['InviteRoles']['1'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['3'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['4'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['6'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['7'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['8'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['9'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['10'] = '0';
    

    However, despite the fact that the default roles and applicate role id are both 11, both the Member and New member roles is being assigned to the new signups, so they can post immediately. I don't understand why the Member role is being assigned to the new sign ups.

    short answer due to bug, you can't.

    A follow up question - when the user verifies their e-mail address, what defines the role that they will be assigned?

    requiring confirm e-mail has no impact on the role assigned. The role does not change, once they confirm.

    read this discussion for more details.

    https://vanillaforums.org/discussion/32308/approval-with-confirm-email-config-php-settings

    Does anyone have any help they can offer?

    I know what you want to you said about not wanting to change role ids. you will be happier with vanilla behaviour if you do!

    I suggest you change your roles to the standard role ids.

    https://vanillaforums.org/discussion/32489/inconsistent-permission-behavior-on-new-forum-migrated-from-smf2

    Thanks,
    Allan

    Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.

Sign In or Register to comment.