# Problèmes de connexion avec wp-discourse

**URL:** https://meta.discourse.org/t/trouble-with-wp-discourse-logins/112939
**Category:** WordPress
**Created:** [Mars 29, 2019, 3:56 UTC](https://meta.discourse.org/t/trouble-with-wp-discourse-logins/112939 "2019-03-29T15:56:45Z")
**Posts on this page:** 1
**Showing post:** 11

<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: [Mars 29, 2019, 5:45 UTC](https://meta.discourse.org/t/trouble-with-wp-discourse-logins/112939/11 "2019-03-29T17:45:25Z")

</div>

There haven’t been any recent changes to the [WP Discourse](https://github.com/discourse/wp-discourse) SSO login code.

If manually creating the SSO record is fixing the issue, then the problem seems to be that the user IDs that are being sent from WordPress as the `external_id` don’t match the external IDs on the user’s [Discourse SSO](https://meta.discourse.org/t/13045?silent=true) record. This can happen if a user’s account is deleted and then recreated on the WordPress site. I wouldn’t expect it to affect all users on a site though.

Another case the will cause problems when the `require_activation` parameter is set to `true` is for users who were created on Discourse prior to SSO being implemented. This would also affect users that were created on Discourse with the `rake admin:create` task.

> [@pfaffman](#):
>
> I don’t see a plugin that is obviously a non-standard WordPress registration system.

If a site is using the default WordPress registration system, users will be registering through a form that looks like this:

 ![07%20AM](https://global.discourse-cdn.com/meta/original/3X/3/6/3671696c1e3eb64eefb4a233835325ae2bef72e7.png)

Responding to the email that is sent after completing this registration form is what removes the `require_activation` flag for a user.

You can find instructions for disabling the `require_activation` flag in this post: [How to turn off Discourse email verification? - #4 by simon](https://meta.discourse.org/t/how-to-turn-off-discourse-email-verification/75365/4).

You should try to confirm if other users on the site are able to login via SSO. The easiest way to do that would be to create a new account on the WordPress site with an email address that you have not yet used on the Discourse site. If you are able to login with a new account, that will make it easier to figure out what’s causing the problem.

---

_[View the full topic](https://meta.discourse.org/t/trouble-with-wp-discourse-logins/112939)._
