Add admin login-as (impersonate) feature to member admin list - #4
Merged
Conversation
Add procMemberAdminLoginAs action that allows super admins to login as a specific non-admin member from the member admin list page. Includes CSRF protection, admin-only access check, and prevention of logging in as another admin user. Co-authored-by: Lastorder-DC <18280396+Lastorder-DC@users.noreply.github.com>
…l=4) Changed the restriction so admins can login as other admin accounts, but member_srl 4 (super admin) is protected from impersonation. Co-authored-by: Lastorder-DC <18280396+Lastorder-DC@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add force login feature for specific user
Add admin login-as (impersonate) feature to member admin list
Mar 2, 2026
Lastorder-DC
marked this pull request as ready for review
March 2, 2026 04:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds ability for super admins to log in as any member directly from the admin member list (
dispMemberAdminList). The super admin account (member_srl=4) is protected from impersonation.Changes
member.admin.controller.php— NewprocMemberAdminLoginAs()action: validates admin permission + CSRF, blocks impersonation ofmember_srl=4, callsSession::login()+setSessionInfo(), redirects to site rootconf/module.xml— RegisterprocMemberAdminLoginAscontroller actiontpl/member_list.html— Per-row "Login As" link (hidden formember_srl=4), JS confirm dialog, hidden POST formlang/ko.php,lang/en.php—cmd_login_as,msg_confirm_login_asstringsSecurity
is_admin === 'Y') + CSRF checkmember_srl=4(super admin) cannot be impersonated🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.