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

API: Set user to Moderator | Set user to Guest #2479

Open
advancedsoftwarecanada opened this issue Mar 12, 2024 · 3 comments
Open

API: Set user to Moderator | Set user to Guest #2479

advancedsoftwarecanada opened this issue Mar 12, 2024 · 3 comments

Comments

@advancedsoftwarecanada
Copy link

advancedsoftwarecanada commented Mar 12, 2024

Hi all, we are unable to run a Prosody plugin as we are an Apache server.

Is there a way to SIMPLY set moderator / guest status? We are integrating to a custom software solution and have user roles already assigned. I can simply do:

<? echo $isModerator; ?>

Thanks

@saghul
Copy link
Member

saghul commented Mar 12, 2024

Prosody is the XMPP server so that's not related to what web server you use.

If you use tokens for auth we have plugins that can allow you to decide if a user should be a moderator or not based on the token.

@advancedsoftwarecanada
Copy link
Author

Thanks for the quick reply. How would the token be generated? I'll have a look at the plugins.

So can I achieve this without Prosody?

@saghul
Copy link
Member

saghul commented Mar 13, 2024

You need to do this via prosody, it's the entity responsible for auth.

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

No branches or pull requests

2 participants