• Hello,
    I’ve noticed the following problem. My installation has two custom user roles: Userrole1 and Userrole2. Userrole1 is the default user role.

    After using your registration form, with the “send activation mail”-option and the “choose user role”-option enabled, the user always gets Userrole1 after activation, even if he had selected Userrole2.

    I found the code for this behaviour in controller.php Line 318.
    Is the mentioned scenario an unhandled and “forgotten” case or is it on purpose?

    greetings

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Javier Carazo

    (@carazo)

    @webanwendung24,

    Ah OK I have just seen it:

    } else {
                    $user->set_role( get_option('default_role') );
                    $url = esc_url( add_query_arg( 'authentication', 'success-activation', $url ) );
                }

    So which role should we use instead?

    Thread Starter webanwendung24

    (@webanwendung24)

    In my case “Userrole2”.

    But generelly I think it would make sense to set the user role to the value, the user sets while registering.

    greetings

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Wrong User Role after activation’ is closed to new replies.