browserid-wordpress
browserid-wordpress copied to clipboard
Name is overwritten by Persona
If I type a name in the comment field, but post with Persona, the local part of my email address overwrites the name I typed in.
@callahad - do you have a test site for this? I just tried it locally and all was good.
@shane-tomlinson I've got a VM handy. Will try to publish somewhere when I'm back from PTO.
I repro'd this but only when i had signed in previously and made a comment. Here are my steps:
- make comment with name: [email protected]
- click sign in button, go through the flow
- confirm comment submitted
- refresh browser,
- make comment again, use 'john doe' as username
- click sign in. In the persona dialog, use [email protected]
result: your email is displayed in the comment, it's like we're picking up a cookie or something. expected: it should say 'john doe' as the username.
@edmoz, @callahad - Are you using an email address that has a Gravatar profile?
@edmoz, @callahad - the other thing is, does the email address already have an account on the site associated with it?
The current logic is (keep going down until match):
- check whether there is an account for the email address, if yes, use the account's profile name, possibly overwriting the name entered by the user in the comment.
- If no author name was given, check gravatar for a profile for the email address. If found, use the profile's displayName
- If still no author, use the "local" half of the email address.