# 防止用户更改其电子邮件地址

**URL:** <https://meta.discourse.org/t/prevent-users-from-changing-their-email-adresses/138042>\
**Category:** Support\
**Created:** [2020年一月8日 10:34 UTC](https://meta.discourse.org/t/prevent-users-from-changing-their-email-adresses/138042 "2020-01-08T10:34:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RenHe](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@RenHe](https://meta.discourse.org/u/RenHe)\
**Post date:** [2020年一月8日 10:34 UTC](https://meta.discourse.org/t/prevent-users-from-changing-their-email-adresses/138042/1 "2020-01-08T10:34:22Z")

</div>

大家好！

我们想在部门内使用 Discourse，但政策要求仅使用企业邮箱地址。我们能否阻止用户修改其邮箱地址，并强制他们使用我们发送邀请时指定的邮箱？

谢谢

---

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [2020年一月8日 10:44 UTC](https://meta.discourse.org/t/prevent-users-from-changing-their-email-adresses/138042/2 "2020-01-08T10:44:38Z")

</div>

最简单的方法是通过您部门的 CAS 使用单点登录（SSO）。这样，用户可以使用其现有的用户名和密码登录，并继续使用 Discourse。此配置还可设置为防止他们更改电子邮件地址。

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2020年一月8日 10:47 UTC](https://meta.discourse.org/t/prevent-users-from-changing-their-email-adresses/138042/3 "2020-01-08T10:47:37Z")

</div>

SSO 是一个不错的选择，但我们还有“可编辑邮箱”设置。如果在管理面板中取消勾选该设置，用户将无法修改其邮箱地址。

---

<div class="post-metadata">

**Author:** ![RenHe](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@RenHe](https://meta.discourse.org/u/RenHe)\
**Post date:** [2020年一月8日 13:03 UTC](https://meta.discourse.org/t/prevent-users-from-changing-their-email-adresses/138042/4 "2020-01-08T13:03:43Z")

</div>

这正好解决问题！谢谢！

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2020年一月9日 18:00 UTC](https://meta.discourse.org/t/prevent-users-from-changing-their-email-adresses/138042/5 "2020-01-09T18:00:04Z")

</div>

此主题已在 28 小时后自动关闭。不再允许新回复。
