# 关于冒充用户的想法

**URL:** <https://meta.discourse.org/t/thoughts-about-impersonate-user/258795>\
**Category:** Community Building\
**Tags:** impersonate\
**Created:** [2023年三月20日 19:54 UTC](https://meta.discourse.org/t/thoughts-about-impersonate-user/258795 "2023-03-20T19:54:52Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [2023年三月21日 06:36 UTC](https://meta.discourse.org/t/thoughts-about-impersonate-user/258795/13 "2023-03-21T06:36:35Z")

</div>

> [@merefield](#):
>
> 无论如何，它们通常是在开发环境中进行的测试账户，但在开发环境中设置测试账户需要额外的工作。

有点不相关，但这个快多了：

> [@I have add sql file of live site on local but login button redirecting how to login on locally on ubuntu](https://meta.discourse.org/t/i-have-add-sql-file-of-live-site-on-local-but-login-button-redirecting-how-to-login-on-locally-on-ubuntu/240884/2?u=simon):
>
> Run you local development environment with DISCOURSE\_DEV\_ALLOW\_ANON\_TO\_IMPERSONATE=1 bin/ember-cli -u and then visit http://localhost:4200/session/system/become on your browser.

它只在开发环境中工作。它允许您从浏览器的地址栏切换账户。

---

_[View the full topic](https://meta.discourse.org/t/thoughts-about-impersonate-user/258795)._
