• Resolved piotroxy

    (@piotroxy)


    Hi,

    I have a custom registration form using the Profile Builder plugin.
    After registration, the ‘Professional’ role should be set – screen.
    Usually everything is ok, but I noticed that sometimes there are users with the administrator role. It turned out that these users came from this registration form.

    I ran a test:

    1. I registered using the form.
    2. My user with the appropriate role (‘Professional’) appeared on the user list. Everything seems to be ok – screen.
    3. I looked at the event history logs and there is something disturbing there. The log shows that the user was registered with the ‘administrator’ role! screen

    In most cases, users ultimately have the correct role, but there are cases where the administrator role remains with them. This is obviously unacceptable.

    How can we solve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support madalinaruzsa

    (@madalinaruzsa)

    Hi @piotroxy,

    What did you use to see the table from point 2? What table is in the screenshot from point 2?

    We are saving the user role in the _usermeta database under the _capabilities meta_key as you can see in the attached screenshot: https://snipboard.io/iHfrmL.jpg

    Thread Starter piotroxy

    (@piotroxy)

    Hi, thanks for the answer.

    What did you use to see the table from point 2? What table is in the screenshot from point 2?
    I used the “Simple History – user activity log, audit tool” plugin.

    We had the default Administrator role set in the WordPress settings.
    In the logs of this plugin, all users registering had the Administrator role. After checking these users, the vast majority finally had the correct ‘Professional’ role.

    Unfortunately, there were cases where some users were left with the default role (Administrator) even though the form should only allow registration with the ‘Professional’ role.

    Plugin Support madalinaruzsa

    (@madalinaruzsa)

    Hi @piotroxy,

    What did you use to set the ‘Professional’ role at registration? Did you use role argument inside the Registration shortcode?

    Thread Starter piotroxy

    (@piotroxy)

    Hi,

    I used the registration form settings:
    https://prnt.sc/zqiEHKJMuW1L

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Incorrect user role after registration’ is closed to new replies.