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.

BUG NEWS USERS : Error group

TofTof
edited February 2016 in Vanilla 2.0 - 2.8

Vanilla 2.2
Theme Bootstrap
Serveur de Test : http://88.181.151.128:8080/
Migration PHPBB -> VANILLA 2

Hi all,

I just saw that I have a significant error

When I have a new registered members, it is placed in the group Members and Moderators

While he has not confirmed his email, he was not in the group Unconfirmed

Can you help me ?

Thank

Tagged:
«1

Comments

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    Please stop using the word 'bug', which implies a fault with the software.

    You need to change the permissions for the role 'Applicant' via the Dashboard.

  • oups sorry,

    I do not understand what you want me to do

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    I suggest not to use several roles per person. If they are moderators, only use the moderator role for them.
    If someone was able to log in and post without verifying their email, edit their role by going to users and editing them by forcing them to confirm their email and reset their password.

    The unconfirmed role is the same as a guest, they are applicants. They should not be allowed to log in until they have confirmed their email.

    If users register but do not confirm their email, they are only guests without any permissions to log in or to post.

    You can always edit the user status by finding the user as you did with Troubadour and edit them, there is an option to force them to confirm email and reset their password.

  • Thank you for your answer

    But you did not understand my problem

    Thank you for your answer

    But you did not understand my problem

    If I create a new user, it is found in the group members and Moderators same time.

    Why this new user is not in the group unconfirmed? Especially as this new user does not confirm his email address?

  • @whu606

    It's a bug ?

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    C'est pas un 'bug', il est ce que vous choisissez.

    Vous n'avez pas un rôle 'Applicants'

    Modifier le rôle « Unconfirmed »

  • Hi @whu606 ,

    I have a group Applicant with the role application

    looks :

  • OK I understand,

    In the database, due to the import of phpbb, application covered the role was deleted

    look instead

    How can I create this online by sending an SQL query?

    Thank

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP

    Dans phpMyAdmin , trouver votre DB et cliquez sur GDN_Role.

    Choisissez "Insérer/Insert"

    Entrez les détails ci-dessous pour RoleID 4

  • TofTof
    edited February 2016

    I just put everything as original VANILLA 2

    it still does not work, I still have the new user in random groups

    Users Test01 : Group Members and Professionels

  • I propose to resume this discussion after I re-import the entire phpbb forum in vanilla

  • Hi all,

    This is the id of my forum :

    I'm watching your links and the file config-defaults.php, I added information in config.php :

    $Configuration['Garden']['Registration']['ConfirmEmail'] = '1';
    $Configuration['Garden']['Registration']['ConfirmEmailRole'] = '2'; // if confirm email role is : my id 2 is Member
    $Configuration['Garden']['Registration']['DefaultRoles']        = array('4'); // The default role(s) to assign new users (id role "Applicant")
    $Configuration['Garden']['Registration']['ApplicantRoleID']     = '4'; // The "Applicant" RoleID.
    

    I already have a small improvement

    My new user is in the group "applicant" but is also found in two other groups: "Members" and "Professionals"

    My new users thus find themselves in 3 groups without their confirmation email.

    an idea ?

  • Here is the information from my config.php on the part Registration

    $Configuration['Garden']['Registration']['ConfirmEmail'] = '1';
    $Configuration['Garden']['Registration']['ConfirmEmailRole'] = '2'; // if confirm email role is : my id 2 is Member
    $Configuration['Garden']['Registration']['DefaultRoles']        = array('4'); // The default role(s) to assign new users (id role "Applicant")
    $Configuration['Garden']['Registration']['ApplicantRoleID']     = '4'; // The "Applicant" RoleID.
    $Configuration['Garden']['Registration']['Method'] = 'Captcha';
    $Configuration['Garden']['Registration']['CaptchaPrivateKey'] = 'xxxxxxxxxxx';
    $Configuration['Garden']['Registration']['CaptchaPublicKey'] = 'xxxxxxxxxxxxxx';
    $Configuration['Garden']['Registration']['InviteExpiration'] = '1 week';
    $Configuration['Garden']['Registration']['InviteRoles']['2'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['5'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['8'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['16'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['18'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['20'] = '0';
    
  • TofTof
    edited February 2016

    Help me please !
    Full test and it is very mysterious

    For information :
    Id 69 = applicant
    Id 72 = Members

    I create a new users : Troubadour.
    Without validate his email, I realize that he belongs to two groups:

    • Applicant (id 69)
    • Member (id 72)

    A first error since there should have been only in the Applicant group

    I control my config.php file and everything is ok:

    // Garden
    $Configuration['Garden']['RewriteUrls'] = true;
    $Configuration['Garden']['Title'] = 'FUTUR FORUM';
    $Configuration['Garden']['Cookie']['Salt'] = 'H7wO1kwMHK54nV35';
    $Configuration['Garden']['Cookie']['Domain'] = '';
    $Configuration['Garden']['Registration']['DefaultRoles'] = array('69');
    $Configuration['Garden']['Registration']['Method'] = 'Captcha';
    $Configuration['Garden']['Registration']['CaptchaPrivateKey'] = 'xxxxxxxxx';
    $Configuration['Garden']['Registration']['CaptchaPublicKey'] = 'xxxxxxxxxx';
    $Configuration['Garden']['Registration']['InviteExpiration'] = '1 week';
    $Configuration['Garden']['Registration']['InviteRoles']['5'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['18'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['69'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['71'] = '0';
    $Configuration['Garden']['Registration']['InviteRoles']['72'] = '0';
    $Configuration['Garden']['Registration']['ConfirmEmail'] = '1';
    $Configuration['Garden']['Email']['SupportName'] = 'FUTUR FORUM';
    

    I control my config-defaults.php file and everything is ok:

    $Configuration['Garden']['Registration']['Method']              = 'Captcha'; // Options are: Basic, Captcha, Approval, Invitation
    $Configuration['Garden']['Registration']['DefaultRoles']        = array('69'); // The default role(s) to assign new users (8 is "Member")
    $Configuration['Garden']['Registration']['ApplicantRoleID']     = '69'; // The "Applicant" RoleID.
    $Configuration['Garden']['Registration']['InviteExpiration']    = '1 week'; // When invitations expire. This will be plugged into strtotime().
    $Configuration['Garden']['Registration']['InviteRoles']         = 'FALSE';
    $Configuration['Garden']['Registration']['ConfirmEmail']        = 1;
    $Configuration['Garden']['Registration']['ConfirmEmailRole']    = 72;
    $Configuration['Garden']['Registration']['MinPasswordLength']   = 6;
    

    RESULTS

    By controlling the Troubadour account, I realize that it is in 2 groups: the default id 69 (Applicant) and id 72 (Member) ...

    In config-php-config & defaults.php, the ['Registration'] [ 'DefaultRoles'] id is 69 (Applicant)

    Without the confirmation email, my Troubadour user has the right to create posts. This means that the default id considered is : id 72 (Member)

    If I confirm the email, my user Troubadour loses the write permissions posts. His group is Applicant (id 69)

    The behavior of the recording made the reverse of those that is written in php-config

    Please help me

  • If you look at the script scan "DB Structure Upgrade", it is wrong in relation to my id

    update GDN_Role `Role`
    set Type = 'applicant'
    where RoleID = '69';
    
    update GDN_Role `Role`
    set Type = 'member'
    where RoleID in ('72', '69');
    
    update GDN_Role `Role`
    set Type = 'unconfirmed'
    where RoleID in ('71', '72');
    
    update GDN_User `User`
    set Permissions = ''
    where Permissions <> '';
    
  • @vrijvlinder thnak for your reponse

    But, I remind you that I do not speak any English. I use Google translation that brings me a rough aid.

    The link you gave me I read it at least 20 times. Translated by Google Translate, I think it does not allow me to technically understand what is written.

    Instead of mailing me a link I knew, could you help me on this? I just spent the entire day searching to no avail.

    thanks again

  • 8 hours of research ....

    Google Translation was headed to an error ...

    You have to have in config.php for my case:

    $Configuration['Garden']['Registration']['ConfirmEmailRole'] = '69';

  • I promise, next week I am taking English classes!

Sign In or Register to comment.