• Resolved ericaceros

    (@ericaceros)


    I’m using ‘Login as user’ to troubleshoot specific account issues. The website is all behind a wordpress login screen, there is no public access. Normally, when choosing ‘login as’ I end up on the home page as per the settings, I see the plugin message bar at the top of the page, and the plugin behaves as expected. With a handful of users I arrive at the normal website login page. If I log in with admin creds I’m just back in as my user, not as the other one. Repeating the action gets the same result for the same user. There is no obvious difference between the users that I can see as to why it works for some, and not others.

    The failing users are not administrators, but have various combinations of capabilities.

    Please advise as to how to debug this.

    Thanks

    • This topic was modified 1 year, 8 months ago by ericaceros.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Yiannis Christodoulou

    (@yiannistaos)

    Hi @ericaceros,

    The issue is not clear for me. The problem here is that as an admin you see something different than another role see?

    Thread Starter ericaceros

    (@ericaceros)

    As an administrator I can use ‘Login as’ on a large number of users who have a variety of roles assigned (non-administrator ones). There are some users, who I can’t see any particular differences with, that if I use the ‘login as’ I don’t end up on the home page but I end up back at the login screen (you must log into the site to access it).

    Thread Starter ericaceros

    (@ericaceros)

    Plugin Author Yiannis Christodoulou

    (@yiannistaos)

    Hmm I don’t know. It seems that there is a conflict with another plugin that handles roles and users. Take a look also in the Login as User plugin settings for the URL redirection parameter https://prnt.sc/HsnSKmoH5AQi

    Try to enter something or leave the field empty.

    Thread Starter ericaceros

    (@ericaceros)

    I put in the URL /news as a page all users have access to after login. I just ended up at the login page again and I can see the redirect URL, after login, will be /news

    /login/?redirect_to&redirect_to=https%3A%2F%2Fsitedomain.com%2Fnews%2F%3Flogged_in_as_user%3Dtrue&aiowps_login_msg_id=session_expired

    That additional querystring param of aiowps_login_msg_id session_expired belongs to ‘All in one WP security’, could that be culprit?

    Plugin Author Yiannis Christodoulou

    (@yiannistaos)

    Maybe yes. Can you temporarily disable the WP Security for 1-2 minutes and check again?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Login as ‘x’ doesn’t work for some users’ is closed to new replies.