如何从 WordPress 网站手动验证或添加 Discourse 用户

Hi team,

I have a wordpress website that I connected via SSO to my Discourse forum.

I am currently writing a reply within my Discourse forum and I want to tag a user from my wordpress website, but the user is not showing up when I type @

My guess is this wordpress user has never visited my Discourse forum, which is why they don’t show up when I type @

Is there any way I can mention this user in my post?

I know the user would love to get involved in this particular forum conversation. I just need to figure out how I can ping them with some sort of notification.

Thanks for any advice :clap:t2::clap:t2::clap:t2:

您无法直接提及用户,但可以通过电子邮件邀请他/她加入该主题或私信。
使用主题底部的“邀请”按钮:


然后添加用户的电子邮件地址。

Thanks for the reply.

I tried adding his email address but I receive the following error.

I can confirm that he is indeed a user on my wordpress website.

And this is the first time I have tried manually inviting him.

Any insight is welcome. Thanks again!

I think that’s a bug. You can’t invite users when SSO is enabled, but the invite button is still shown.

Oh ok, thanks for the explanation Simon.

You could try enabling the Create Discourse User on Login setting on the in the Discourse WordPress plugin’s SSO Provider tab. With that enabled, users logging into your WordPress site will be created on Discourse.

Thanks for the reply Simon.

I checked and it looks like I already have that box checked.

I also verified that I have “sso allows all return paths” checked.

image

Maybe another bug? Or a bug specific to my site?

Not a huge deal either way. Thanks for the help and assistance :+1:t2:

You can fix this by forcing a logout on Wordpress, so the Discourse account is created when they log in again.