hubot-archive / hubot-auth

Assign roles to users and restrict command access in other scripts
149 stars 54 forks source link

HUBOT_AUTH_ADMIN with XMPP jid #59

Open meaz opened 5 years ago

meaz commented 5 years ago

I use hubot-auth for a bot on my XMPP server. On XMPP server, users are identified with a JID, something that looks like an email: username@server.com HUBOT_AUTH_ADMIN works fine if i set just the username. But if I set a the JID, so username@server.com, then this person is not recognized as an admin.

The problem is that on a XMPP server david@server1.com and david@server2.com are two different persons! So right now, if I set HUBOT_AUTH_ADMIN=david, both of them would have admin rights. That's not what i want...