# Wp-discourse erhält seltsame Daten von wp – Debug-Hilfe?

**URL:** <https://meta.discourse.org/t/wp-discourse-getting-odd-data-from-wp-debug-help/104576>\
**Category:** WordPress\
**Created:** [18. Dezember 2018 um 18:00 UTC](https://meta.discourse.org/t/wp-discourse-getting-odd-data-from-wp-debug-help/104576 "2018-12-18T18:00:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Seal](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@Seal](https://meta.discourse.org/u/Seal)\
**Post date:** [18. Dezember 2018 um 18:00 UTC](https://meta.discourse.org/t/wp-discourse-getting-odd-data-from-wp-debug-help/104576/1 "2018-12-18T18:00:27Z")

</div>

**Issue** I have a few users in WP (sso provider) that cannot login to Discourse. It appears that the email address being sent is that of another user id.

**Background** So, I installed wp and wp-discourse and it all worked fine. Then I accidentally eased my wp instance. I re-installed, re-connected, re-created test users… possibly different usernames, probably different id’s. Now some of the original users cannot login to discourse. I presumed that the email address was the only identifier, but it seems that user id’s are used as ident’s and email addresses are used as credentials? Not quite sure.

**Example** Here is an example: from the Discourse log after enabling sso logging.

_I have sanitized all data with either 4-ValidData or 5-ValidData representing actual, valid data from User 4 and User 5 respectively. User 5 is trying to login, but being denied access since user 4’s external id, name, username and email are being provided._

```plaintext
Verbose SSO log: Record was invalid: User 4-ValidData
{:primary_email=>"has already been taken"}

Attributes:
{"admin"=>true, "moderator"=>false, "locale"=>nil, "name"=>" 4-ValidData", "title"=>nil, "username"=>" 4-ValidData"}

SSO Diagnostics:
add_groups: 
admin: 
moderator: 
avatar_force_update: true
avatar_url: 
bio: 
card_background_url: 
email: 4-ValidData
external_id: 5-ValidData
groups: 
locale: 
locale_force_update: 
name: 5-ValidData
nonce: 0ba19b8ac5e9e27e351fcd22df44e2a6
profile_background_url: 
remove_groups: 
require_activation: true
return_sso_url: 
suppress_welcome_message: 
title: 
username: 5-ValidData
website: 

```

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-getting-odd-data-from-wp-debug-help/104576)._
