matterhorn-chat / matterhorn

A feature-rich Unix terminal client for the Mattermost chat system
BSD 3-Clause "New" or "Revised" License
1.02k stars 75 forks source link

login auth not remembered on Ubuntu 22.04 #809

Closed kaddkaka closed 5 months ago

kaddkaka commented 9 months ago

I thought this issue was only with snap at first, but I have a problem that matterhorn does not remember my login credentials.

I generate and enter my access token and am able to connect, but the next time I start matterhorn I get presented with the same login prompt:

┌──────────────────────────────────────────────────────────┐
│Please enter your Mattermost credentials to log in.       │
│                                                          │
│Server URL:           (Paste your Mattermost URL here)    │
│                                                          │
│             Provide a username and password:             │
│Username:                                                 │
│                                                          │
│Password:                                                 │
│                                                          │
│      Or provide a Session or Personal Access Token:      │
│Access Token:                                             │
│                                                          │
│          Press Enter to log in or Esc to exit.           │
└──────────────────────────────────────────────────────────┘

How to troubleshoot?

jtdaugherty commented 9 months ago

Hi @kaddkaka. To make matterhorn remember your choices, you'll need to create a Matterhorn configuration file. Matterhorn does not automatically save any authentication settings for security reasons. I recommend checking out the documentation for these settings: