Hello,

I'm using your module and have a problem with displayed name on comment.

If I post new comment with account name "test" for example, comment is created with user name : "test (not verified)"

This is due to comment module which compare uid from global variable $user and from post form.
And off course the post uid variable is empty.

so we need to feel it when user register.
I propose to add

<$form_state['values']['uid'] = $user->uid;

next

if ($user->uid) {

CommentFileSizeAuthor
#1 comment_login-564388.patch590 bytestuffnatty

Comments

tuffnatty’s picture

Status: Active » Needs review
StatusFileSize
new590 bytes

Thanks! I've built a patch, maybe the module maintainer will accept it?

MaxWesten’s picture

This patch works as expected.
Thanks for submitting.

pianomansam’s picture

Status: Needs review » Reviewed & tested by the community

Patch appears to be working for me as well. Bumping to reviewed & tested by the community and have rolled this into my patch on #1526254: Placing login form before comment form overwrites Username field, breaking the entire form