Admin Can Login as Any User
Author Message
After activation, this adds two option to user profiles, only visible to administrators:
  • Login as this user
  • Force logout
The first allows the administrator to effectively login to the account without the user's password.  Everything behaves normally in this login state.  The only difference is that logging out will return the administrator back to their original account.
(note, please don't use this to log into another administrator's account, and then log into some other account from there, though I haven't tried what happens if you do this)

The second option just forces the user to log out if they have logged in somewhere.

Alternative version: Login As by burnacid
(This post was last modified: 06-05-2018 09:30 AM by ZiNgA BuRgA.)
Find all posts by this user
Quote this message in a reply
Download: admhijack.php (3.68 KB)
Plugin Version: 1.2
Last Updated: 11-02-2011, 10:09 PM

Downloads: 4,423
MyBB Compatibility: 1.2.x, 1.4.x, 1.6.x, 1.8.x
Uploader: ZiNgA BuRgA
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #21
RE: Admin Can Login as Any User
I don't use it, but there was one occasion where there was something weird happening on someone's account, so I logged in as them to see what the issue was.

I made it primarily cause I think it's an interesting idea, and I like writing non-practical plugins which interest me Tongue

My Blog
11-13-2010 09:47 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #22
RE: Admin Can Login as Any User
I use it to log in and log out to my test account, to test some modification/plugin. I need to know whether my modification/plugin works for other usergroup or not, especially if the modification/plugin adds other settings for them.

11-14-2010 07:09 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #23
RE: Admin Can Login as Any User
this is simply best if you need to check the working of forum permissions and other settings for other groups
11-14-2010 07:20 AM
Find all posts by this user Quote this message in a reply
katib Offline
Junior Member
**
Posts: 20
Joined: Dec 2010
Post: #24
RE: Admin Can Login as Any User
Thanks for great plugin
Very useful for testing users permissions
A gustion thought: I have a plugin that invite zero posters to be more active after viewing X threads, deos admin will see this notice when logging under user account?
(This post was last modified: 12-07-2010 08:42 AM by katib.)
12-07-2010 05:48 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #25
RE: Admin Can Login as Any User
Yes, they'll basically be the user.

My Blog
12-07-2010 07:22 AM
Find all posts by this user Quote this message in a reply
katib Offline
Junior Member
**
Posts: 20
Joined: Dec 2010
Post: #26
RE: Admin Can Login as Any User
I installed the plugin, but didnot find any option to log into user account !!!
EDIT: well I managed to find the two added options under /user..html
Now, I log using user's account, but whenever I enter a forum or a thread, I get a blank page
When I log out from this user's account, I find mysel totally logged out !! so I had to log in again as admin

NB: This happened in online forum, but in local server, it worked pefectely
(This post was last modified: 12-08-2010 04:38 AM by katib.)
12-08-2010 04:14 AM
Find all posts by this user Quote this message in a reply
katib Offline
Junior Member
**
Posts: 20
Joined: Dec 2010
Post: #27
RE: Admin Can Login as Any User
Sorry
there was a typo in forumdisplay.php
12-08-2010 05:34 AM
Find all posts by this user Quote this message in a reply
katib Offline
Junior Member
**
Posts: 20
Joined: Dec 2010
Post: #28
RE: Admin Can Login as Any User
Well, I can login into a user's accont, but as soon as I log out from this account, I find myself totaly logged out, So I have to login again into my admin account
(This post was last modified: 12-09-2010 01:04 AM by katib.)
12-08-2010 10:39 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #29
RE: Admin Can Login as Any User
Do you have Cookie Prefix?

12-09-2010 05:18 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #30
RE: Admin Can Login as Any User
^ That's a good point - I should probably use MyBB"s cookie array now that it exists.  But I'll wait for katib's response.

My Blog
12-09-2010 09:13 AM
Find all posts by this user Quote this message in a reply


Forum Jump: