Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with email field when used without Postmatic #49

Closed
johnpuddephatt opened this issue Dec 2, 2015 · 8 comments
Closed

Problem with email field when used without Postmatic #49

johnpuddephatt opened this issue Dec 2, 2015 · 8 comments
Assignees
Labels
Milestone

Comments

@johnpuddephatt
Copy link

Having a problem with email values going astray when this plugin is used without Postmatic and a comment is left without connecting/linking to a social network. The problem doesn't occur with Postmatic is enabled.

Steps to reproduce:

• This plugin is installed with twitter login enabled (not tested with other networks)
• The wordpress discussion setting 'Users must be registered and logged in to comment' is unchecked
• A comment is added without using social login (i.e. just by filling out the name/email/website/comment fields)
• the email field clears when submit is clicked
• the value in the email field is not stored with the comment, and if the 'Comment author must fill out name and e-mail' discussion setting is checked then an error message is received

Can anyone confirm?

@johnpuddephatt
Copy link
Author

Not sure if it's related but does anyone have any idea why the submitted email address is being stored in two different cookies? (or at least is when things are working – in the scenario above neither cookie is created!)

There's the wordress comment_author_email_ one but there's also a pms_comment_author_email_ one too...

@johnpuddephatt
Copy link
Author

Ah ok, looks like the pms_comment_author_email_ cookie is used for the postmatic email notifications input. Confusingly (I think) it's being set even if I don't fill that field in...

@Vernal
Copy link
Contributor

Vernal commented Dec 2, 2015

Hey John,

I'll try to take a look at that later today. I haven't heard mention of it otherwise.

pms_comment_author_email is used in this case:

  • The user signs in using twitter
  • Postmatic is installed
  • If the user chooses to subscribe via email we then have to ask for an email address because we cannot get it from twitter
  • That address is passed to pms_comment_author_email.

Amiright, @cyberhobo?

@Vernal Vernal added the question label Dec 2, 2015
@erscampbell
Copy link

Is this the error you're referring to?

email twitter error

Using the configuration in your post above, I now get this message every time I try to leave a comment without using social login.

@johnpuddephatt
Copy link
Author

Yep that's the one, thanks for confirming!

It's a wordpress error – you can get rid of it by unchecking the 'Users must be registered and logged in to comment' setting in Discussion > Settings, but then comments are just saved without an email address.

@Vernal
Copy link
Contributor

Vernal commented Dec 2, 2015

Yea, this isn't right. We'll get on it!

@Vernal Vernal added bug and removed question labels Dec 2, 2015
@cyberhobo cyberhobo added this to the 1.0.1 milestone Dec 7, 2015
@cyberhobo
Copy link
Contributor

Think I got it. We should put out 1.0.1 soon to fix this and #50.

@Vernal
Copy link
Contributor

Vernal commented Dec 7, 2015

Awesome. Need to do a version bump as well. Let's try to push it by wed.
I've got a few other things to clean up on my end.

On Sun, Dec 6, 2015 at 8:18 PM, Dylan Kuhn notifications@github.com wrote:

Think I got it. We should put out 1.0.1 soon to fix this and #50
#50.


Reply to this email directly or view it on GitHub
#49 (comment)
.

Jason G. Lemieux | Creative Director
Vernal Creative and Strategy
http://www.vernalcreative.com | New Number - 802.821.4059

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants