# Transfer passwords from Wordpress to Discourse?

**URL:** https://meta.discourse.org/t/transfer-passwords-from-wordpress-to-discourse/105733
**Category:** WordPress
**Created:** [January 5, 2019, 2:03am UTC](https://meta.discourse.org/t/transfer-passwords-from-wordpress-to-discourse/105733 "2019-01-05T02:03:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ibbybenali](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ibbybenali/32/119691_2.png) [@ibbybenali](https://meta.discourse.org/u/ibbybenali)
#### Post date: [January 5, 2019, 2:03am UTC](https://meta.discourse.org/t/transfer-passwords-from-wordpress-to-discourse/105733/1 "2019-01-05T02:03:27Z")

</div>

Hi, just asking this as I want to know all options in advance… I was wondering if it would be possible to transfer passwords from Wordpress to Discourse if one would decide to delete their Wordpress at one point in time when Wordpress is used as the SSO provider. From the post below the solution given was having a password reset link, I was hoping there would be some alternative method to port it over like transferring passwords and how this would be done.

Also as a sidenote, maybe @simon you can supplement your answer below if applicable as the topic is closed: is it possible to send out a batch password reset email to users? It could be for a case as described in the topic below, but also if there has been a security breach perhaps.

Related to:

> [@Wordpress is SSO provider but want to come back to SSO Discourse](https://meta.discourse.org/t/wordpress-is-sso-provider-but-want-to-come-back-to-sso-discourse/100278/2):
>
> For users who have only logged into your site through SSO, there is no password saved on Discourse. If you disable SSO, those users will need to click on the ‘I forgot my password’ link when they first try to log back in to Discourse. They can set their password by clicking on the link in the password reset email.

---

<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: [January 5, 2019, 2:26am UTC](https://meta.discourse.org/t/transfer-passwords-from-wordpress-to-discourse/105733/2 "2019-01-05T02:26:01Z")

</div>

> [@ibbybenali](#):
>
> I was wondering if it would be possible to transfer passwords from Wordpress to Discourse if one would decide to delete their Wordpress at one point in time when Wordpress is used as the SSO provider.

For this to work, it would need to be possible to set a Discourse password through the API. I’m fairly sure this can’t be done. The best information I can find about it is here: [Is there an API for changing a password? - #2 by blake](https://meta.discourse.org/t/is-there-an-api-for-changing-a-password/52537/2). It is suggesting to trigger the password reset email through the API.

> [@ibbybenali](#):
>
> is it possible to send out a batch password reset email to users?

Yes, one approach would be to write a script that loops through your users and makes the API call that’s given in the previous post I linked to. It is possible that you will run into API rate limit issues with that. Here’s another way it could be done: [Reset user password by Admin - #10](https://meta.discourse.org/t/reset-user-password-by-admin/56987/10).

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 5, 2019, 3:07am UTC](https://meta.discourse.org/t/transfer-passwords-from-wordpress-to-discourse/105733/4 "2019-01-05T03:07:06Z")

</div>

Several import scripts import passwords with the help of a plugin. [Migrated password hashes support](https://meta.discourse.org/t/migrated-password-hashes-support/19512)

You could conceivably do something similar to pull passwords over.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 4, 2019, 3:16am UTC](https://meta.discourse.org/t/transfer-passwords-from-wordpress-to-discourse/105733/5 "2019-02-04T03:16:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
