跳至内容
WordPress.org

China 简体中文

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

Plugin Directory

Just Wanna Be a User

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

Just Wanna Be a User

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

描述

Just Wanna Be a User adds a Log in as this user link to every row of the Users screen. One click logs you in as that user and takes you to the site’s homepage (or any page you choose), so you can check what they see: their account pages, their courses, their orders, their permissions.

While you are logged in as someone else, a small bar is pinned to the top center of every page showing who you are viewing as, with a Go back to admin button. That button logs you back in to your own account and returns you to the Users screen, or any admin page you choose. Drag the bar out of the way, or shrink it to two small buttons. You never need the other user’s password, and you never need to type yours again.

Features

  • “Log in as this user” row action on the Users screen.
  • “Go back to admin” bar at the top center of the site while you are switched.
  • The bar also appears on pages that block the user, such as maintenance mode screens and “Sorry, you are not allowed to access this page” errors, so you can’t get stuck.
  • Drag the bar anywhere, or minimize it to two small buttons: go back to admin and expand. It remembers where you left it.
  • Choose where you land in Tools > Just Wanna Be a User: the homepage, dashboard, profile or any page when switching in, and the Users screen, dashboard, homepage or any admin page when going back.
  • Works out of the box. The defaults are the homepage on the way in and the Users screen on the way back.

Who can use it

Only users who are allowed to edit the target user can switch to them. On a single site that means administrators. On multisite it means super admins. You can’t switch to yourself, and the link isn’t shown where you don’t have permission.

Security

  • Both the switch and the switch-back links are protected by WordPress nonces.
  • Before switching, the plugin keeps your own session alive and stores a signed reference to it in an HttpOnly cookie. “Go back to admin” only works when that signature is valid for your still-active session, so it can’t be used to take over any other account.
  • When you go back, the temporary session that was created for the other user is destroyed.

Found a security issue? Please report it privately through GitHub’s private vulnerability reporting at https://github.com/vPereira04/just-wanna-be-a-user/security/advisories/new, rather than in the public support forum. Include the plugin version, the steps to reproduce, and what an attacker could do. You’ll get a first response within 5 business days, and we’ll keep you posted until a fix ships. See SECURITY.md in the plugin folder for the full policy.

Privacy

This plugin does not collect, store or send any data to external services. It sets one cookie, jwbau_origin_{hash}, only while an administrator is logged in as another user. The cookie holds a signed reference to the administrator’s own session and is deleted when they go back or log out. It’s a strictly necessary authentication cookie: it’s set only when an administrator clicks Log in as this user, it’s needed to log them back in, and it’s never used for tracking, so it doesn’t need cookie consent. The bar’s position and minimized state are kept in the browser’s local storage, under jwbau_bar, and never leave the browser.

屏幕截图

The "Log in as this user" link in a user's row actions on the Users screen.
The “Log in as this user” link in a user’s row actions on the Users screen.
The "Go back to admin" bar pinned to the top center of the site while you are logged in as another user.
The “Go back to admin” bar pinned to the top center of the site while you are logged in as another user.

安装

  1. Upload the just-wanna-be-a-user folder to /wp-content/plugins/, or install the plugin from the Plugins > Add New screen.
  2. Activate the plugin through the Plugins screen.
  3. Go to Users, hover over a user and click Log in as this user.
  4. Optional: choose where you land in Tools > Just Wanna Be a User, or click Settings under the plugin on the Plugins screen.

常见问题

Do I need the user’s password?

No. You are logged in as the user directly, and their password is never touched.

How do I get back to my own account?

Click Go back to admin in the bar at the top of the page. If the bar is minimized, click its arrow button. You are logged back in as yourself and taken to the Users screen, or to the page set in Tools > Just Wanna Be a User.

Can I land somewhere other than the homepage and the Users screen?

Yes. Go to Tools > Just Wanna Be a User. For each side, pick a preset or type a custom path. Custom paths must stay on your own site.

The bar is covering something on the page.

Drag it by its dotted grip to anywhere on the screen, or click the minus button to shrink it to two small buttons. Double-click the grip to put it back at the top center.

My site is in maintenance mode and the user is blocked. Am I stuck?

No. The “Go back to admin” bar is added even to pages that stop early, like maintenance mode screens and wp-admin permission errors.

What if I just close the browser?

Switching uses a session cookie, so closing the browser ends it. Log in again as usual.

The “Go back to admin” link says it has expired.

Your own admin session ended while you were switched (for example, it timed out or you logged out everywhere). Log in to your admin account again.

Can I switch to another administrator?

Yes, as long as you are allowed to edit that user.

What is removed when I delete the plugin?

Its one setting, jwbau_settings. The plugin creates no database tables.

评价

此插件暂无评价。

贡献者及开发者

「Just Wanna Be a User」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Victor Pereira

帮助将「Just Wanna Be a User」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

Releases that fix a security issue say so in their entry, prefixed with Security:.

1.0.0

  • Initial release.

额外信息

  • 版本 1.0.0
  • 最后更新:1 天前
  • 活跃安装数量 不到10
  • WordPress 版本 5.9 或更高版本
  • 已测试的最高版本为 7.1.3
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    adminimpersonatelogin as useruser switchingusers
  • 高级视图

评级

尚未提交反馈。

您的评价

查看全部评论

贡献者

  • Victor Pereira

支持

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

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • 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 账号
代码如诗