Skip to content

Add admin login-as (impersonate) feature to member admin list - #4

Merged
Lastorder-DC merged 3 commits into
masterfrom
copilot/add-force-login-feature
Mar 2, 2026
Merged

Add admin login-as (impersonate) feature to member admin list#4
Lastorder-DC merged 3 commits into
masterfrom
copilot/add-force-login-feature

Conversation

Copilot AI commented Mar 2, 2026

Copy link
Copy Markdown

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 — New procMemberAdminLoginAs() action: validates admin permission + CSRF, blocks impersonation of member_srl=4, calls Session::login() + setSessionInfo(), redirects to site root
  • conf/module.xml — Register procMemberAdminLoginAs controller action
  • tpl/member_list.html — Per-row "Login As" link (hidden for member_srl=4), JS confirm dialog, hidden POST form
  • lang/ko.php, lang/en.phpcmd_login_as, msg_confirm_login_as strings

Security

  • Admin-only (is_admin === 'Y') + CSRF check
  • member_srl=4 (super admin) cannot be impersonated
  • Other admin accounts can be impersonated by fellow admins
  • Confirmation dialog warns that current admin session will be terminated

🔒 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.

Copilot AI and others added 2 commits March 2, 2026 04:10
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
Lastorder-DC marked this pull request as ready for review March 2, 2026 04:17
@Lastorder-DC
Lastorder-DC merged commit fc0e8a9 into master Mar 2, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants