Hi Kim,
Thanks for the reply. That's exactly what I was looking for.
Thanks again,
Peter
On Sunday, May 4, 2014 12:21:34 PM UTC+1, Kim Alvefur wrote:
Hi Peter,
On 2014-05-03 20:51, Peter Villeneuve wrote:
How can I limit concurrent logins from the same account on Prosody?
ie. if user A is logged in once, then any subsequent attempts to login
will fail.
There's this simple plugin:
http://prosody-modules.googlecode.com/hg/mod_c2s_limit_sessions/
No docs written yet, sorry about that. The only configuration option is
max_resources, which defaults to 10. So you want to add
max_resources = 1
to your config file and of course add the module to the modules_enabled
list.
I know this goes against the spirit of xmpp, but I have a particular
case where I need to make sure that each jid is only logged in once.
Well, you might want to have a reasonable limit anyways. I've heard
stories of people who created chat services where everyone was using the
same jid on another server.
--
Hope this helps,
Kim Zash Alvefur
--
You received this message because you are subscribed to the Google Groups
prosody-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email
to prosody-dev+unsubscr...@googlegroups.com.
To post to this group, send email to prosody-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.