Transfer passwords from Wordpress to Discourse?

AI-generated summary

The discussion revolves around transferring passwords from Wordpress to Discourse when Wordpress is used as the SSO provider. ibbybenali inquires about the possibility of porting passwords over, instead of relying on a password reset link.

Simon notes that setting a Discourse password through the API is not possible, citing a related discussion (https://meta.discourse.org/t/is-there-an-api-for-changing-a-password/52537/2). He suggests triggering a password reset email through the API as an alternative.

Regarding sending out batch password reset emails, Simon recommends writing a script that makes API calls or using a method described in another discussion (https://meta.discourse.org/t/reset-user-password-by-admin/56987/10).

pfaffman proposes using import scripts that support migrated password hashes, such as the one described in (https://meta.discourse.org/t/migrated-password-hashes-support/19512), as a potential solution to transfer passwords.

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:

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. It is suggesting to trigger the password reset email through the API.

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.

Several import scripts import passwords with the help of a plugin. Migrated password hashes support

You could conceivably do something similar to pull passwords over.