# 在已有大量用户注册后添加SSO -- 如何迁移他们？

**URL:** <https://meta.discourse.org/t/adding-sso-after-many-users-already-signed-up-how-to-migrate-them/232240>\
**Category:** SSO\
**Created:** [2022 年7 月 7 日 19:53 UTC](https://meta.discourse.org/t/adding-sso-after-many-users-already-signed-up-how-to-migrate-them/232240 "2022-07-07T19:53:40Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

作者： ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
发布日期： [2022 年9 月 11 日 21:45 UTC](https://meta.discourse.org/t/adding-sso-after-many-users-already-signed-up-how-to-migrate-them/232240/18 "2022-09-11T21:45:15Z")

</div>

> [@EGreg](#):
>
> 我建议 Discourse 在将密码通过网络发送之前对其进行加盐哈希（可以使用 userId）。为什么不呢？

用户 ID 在登录前是未知的，所以那行不通……

10 次迭代不安全，而 63990 次迭代比 64000 次迭代更不安全。所以，尽管只是微小的差别，但你似乎是用两种不太安全的方法和大量的额外复杂性来替换一种安全的方法。

实际的收益是什么？

---

_[View the full topic](https://meta.discourse.org/t/adding-sso-after-many-users-already-signed-up-how-to-migrate-them/232240)._
