跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Dalmatian Dream Login As User

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

Dalmatian Dream Login As User

作者:Marin Horvat
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

Dalmatian Dream Login As User adds a secure “Login as user” action to the WordPress Users screen for administrators with the dedicated dd_switch_users capability.

The plugin uses opaque per-session switch tokens, server-side transient state, nonce-protected switch and return actions, strict target validation, safe redirects, and cleanup on logout. It blocks nested impersonation and protects multisite super administrator accounts.

The plugin does not send data to external services and does not include telemetry, advertising, or remote code.

When switching accounts, the plugin preserves the administrator WordPress session in encrypted server-side state and creates a temporary target-user session. On return, it validates the administrator session and destroys only the temporary target session. AIOWPS logged-in-user tracking is temporarily suspended only while setting switch-related authentication cookies, so account switching does not appear as a new login. Other authentication listeners remain active.

Privacy

Dalmatian Dream Login As User does not transmit personal data to external services. Switch-session state is stored temporarily in the local WordPress database using transients. The original administrator WordPress session token is encrypted using authenticated encryption before storage. Switch state is removed when the session expires, the user returns to the administrator account, or the impersonated user logs out. The plugin also temporarily stores a hashed impersonation-session fingerprint to distinguish administrative switching from ordinary login/logout notifications.

安装

  1. Upload the dd-login-as-user folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Administrators receive the dd_switch_users capability on activation.

常见问题

Who can switch users?

Only users with the dd_switch_users capability can start a switch session. The plugin adds that capability to the administrator role on activation.

Can administrators impersonate other administrators?

On single-site installs, administrator-to-administrator switching is blocked by default. Developers can opt in with the dd_login_as_user_allow_admin_target filter.

How long does a switch session last?

The default timeout is 60 minutes. It can be adjusted with the DD_LOGIN_AS_USER_TIMEOUT constant or the dd_login_as_user_timeout filter.

评价

此插件暂无评价。

贡献者及开发者

「Dalmatian Dream Login As User」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Marin Horvat

帮助将「Dalmatian Dream Login As User」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

2.0.13

  • Prevented AIOWPS logged-in-user tracking from recording administrative user switches and returns as new logins.
  • Temporarily suspended only AIOWPS’s set_auth_cookie tracking callback while setting switch cookies; restored it immediately afterward.
  • Preserved normal authentication callbacks and genuine login tracking.

2.0.12

  • Preserved the original administrator WordPress session token in encrypted server-side switch state.
  • Restored the existing administrator session after validating native and supported session-limiter expiry, without creating an additional administrator session.
  • Destroyed only the temporary impersonated-user WordPress session on successful return, leaving other devices untouched.
  • Corrected the impersonated-user session token expiration argument.

2.0.11

  • Added impersonation-session fingerprint tracking for integrations that distinguish account switching from genuine login/logout events.
  • Avoided emitting the standard WordPress login action for administrative impersonation.

2.0.8

  • Removed unused storage of the original administrator WordPress session token.
  • Reduced temporary switch-session state to the minimum data required for secure account switching.

2.0.7

  • Prepared plugin metadata and documentation for WordPress.org Plugin Directory review.
  • Updated WordPress compatibility metadata.
  • Clarified privacy and local switch-session storage behavior.

2.0.6

  • Added the plugin languages folder.
  • Documented the intentional WordPress core login hook call for compatibility.

2.0.5

  • Restored the impersonated account early from the secure switch token when the WordPress auth cookie is not accepted.
  • Fired the standard WordPress login action after a successful switch.

2.0.4

  • Changed successful switch landing to the admin dashboard instead of the user profile screen.
  • Prevented cached profile redirects from blocking impersonation when profile access is hidden.
  • Set a persistent authentication cookie for the impersonated account.

2.0.3

  • Fixed Plugin Check internationalization and redirect sanitization findings.
  • Removed discouraged manual translation loading call.

2.0.2

  • Changed successful switch redirect to the impersonated user’s profile panel.

2.0.1

  • Fixed blank page after switching to another user.
  • Fixed blank page after returning to the administrator account.
  • Improved safe local redirect handling after account switches.

2.0.0

  • Reworked user impersonation session security.
  • Added unique switch-session tokens.
  • Added secure return-to-administrator workflow.
  • Added dedicated switch capability.
  • Added multisite and administrator-target protections.
  • Improved nonce, input sanitization and redirect handling.
  • Added internationalization support.
  • Removed production debug output.
  • Added lightweight audit hooks.
  • Improved WordPress.org / Plugin Check compatibility.

额外信息

  • 版本 2.0.13
  • 最后更新:2 周前
  • 活跃安装数量 不到10
  • WordPress 版本 6.5 或更高版本
  • 已测试的最高版本为 7.1.4
  • PHP 版本 8.1 或更高版本
  • 语言
    English (US)
  • 标签
    adminimpersonationloginuser switchingusers
  • 高级视图

评级

尚未提交反馈。

您的评价

查看全部评论

贡献者

  • Marin Horvat

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 周边商品 ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

China 简体中文

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗