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

Question: Directions for Plugin to display message if user has no displayname set #1981

Open
oafx opened this Issue Oct 10, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@oafx
Copy link
Contributor

commented Oct 10, 2018

Do you want to request a feature or report a bug?

question

Question

Hello,

the site we're trying to include with talk uses an external user database where a displayname isn't mandatory. We solved adding the users via the tokenUserNotFound hook, as described in the docs. We'd now like to notify the user (via some kind of html element or a modal box) that he has to set a displayname in his profile settings to be able to comment. Is there a way to solve this via plugins and some kind of documentation on how to do this? I'd be very grateful for some directions. Thanks a lot!

Kind regards
Christian

Version and environment

v4.6.4, Docker

@wyattjoh

This comment has been minimized.

Copy link
Member

commented Oct 11, 2018

You can take a look at the code that we currently use in our auth plugin: https://github.com/coralproject/talk/blob/master/plugins/talk-plugin-auth/client/stream/containers/SetUsernameDialog.js which you can adapt to a plugin of your own design!

Hope that helps!

@wyattjoh wyattjoh self-assigned this Oct 11, 2018

@wyattjoh wyattjoh added the question label Oct 11, 2018

@oafx

This comment has been minimized.

Copy link
Contributor Author

commented Oct 15, 2018

Thanks! I'll have a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.