After enabling SSO via the wp-discourse plugin with WordPress as the provider, users who previously existed in Discourse lost access because WordPress didn’t create corresponding accounts for them. Andy02 reports that logging out breaks re-login, showing “no user exists with that name.” simon confirms this is expected behavior for pre-existing Discourse users and suggests manual registration on WordPress using the same email, or posting a banner topic to guide users. For large user bases, he notes a custom sync script is possible but complex. No built-in solution currently exists, and this edge case appears underreported.
after merging login’s discourse created new accounts for users in Wordpress, but Wordpress did not create new accounts for users in Discourse
initially this worked ok. when a user logs out of their discourse account they are not able to log back in. receiving a message that no user exists with that name
can i copy all users from the discourse database into wordpress?
Are you using the wp-discourse plugin with WordPress as the SSO provider for Discourse?
If so, it doesn’t create accounts on WordPress for users that existed on Discourse prior to enabling the SSO functionality. If this only affects a few users, the easiest solution would be to ask those users to sign up on the WordPress site using the same email address as they are using on Discourse. You could also do this yourself manually in the WordPress dashboard.
If it affects a lot of users, I’m not sure right now what the best approach would be. I’m surprised this hasn’t come up before. I’ll see if I can think of anything.
Edit: The easiest/safest thing I can think of would be to create a banner topic on your Discourse forum, that explains how the login process has changed and provides a link to the registration page on your WordPress site.
It would also be possible to write a script on that would run on WordPress to sync users automatically, but it would take a bit of work to get it right.