EionRobb / purple-mattermost

A libpurple/Pidgin plugin for Mattermost
GNU General Public License v3.0
93 stars 23 forks source link

Bad username/password in bitlbee #144

Closed blacklight closed 2 years ago

blacklight commented 2 years ago

I have installed the plugin and created a Mattermost account in bitlbee through the following command:

account add eionrobb-mattermost username|https://my.mattermost.srv:port password

However, when I bring up the account, the request immediately fails with:

eionrobb-mattermost - Login error: Bad username/password

The same username and password work fine both from the web client and the mobile app.

Is it an underlying bug in the protocol or the plugin hasn't been tested in bitlbee?

blacklight commented 2 years ago

After a look at how serverparts is split in the code, I have realized that the server setting should be passed without the protocol prefix - serverparts is split by slashes, so a URL format messes up the server name.

This format works instead:

account add eionrobb-mattermost username|my.mattermost.srv:port password

Maybe worth adding a line in the documentation about the username/server expected formats, for those who use this plugin with CLI interfaces like bitlbee?