lightning-terminal icon indicating copy to clipboard operation
lightning-terminal copied to clipboard

Login page shows misleading error when running without wallet

Open glowacki-dev opened this issue 3 years ago • 2 comments

It's pretty much a cosmetic thing, but may be misleading to new users. When LiT is configured with lnd instance that has no associated wallet, it will not allow logging in, but will instead claim that the password is incorrect. The message should probably mention the actual issue, which is having no wallet.

To reproduce:

  • run litd on a new machine (or point lnd to a new directory) ./litd --uipassword="somepassword" --lnd-mode=integrated --lnd.bitcoin.active --lnd.bitcoin.mainnet --lnd.bitcoin.node=neutrino
  • Try to login via web interface to get "password is incorrect" error
  • run ./lncli create
  • You should no be able to login using the same credentials

glowacki-dev avatar Nov 07 '20 09:11 glowacki-dev

The same thing happens when wallet is locked, so I guess it may get be resolved as part of #121

glowacki-dev avatar Nov 07 '20 09:11 glowacki-dev

Thanks for the feedback. I agree we should present a more specific error when the node is locked. I also would like to add the ability to unlock via the UI as well.

jamaljsr avatar Nov 08 '20 14:11 jamaljsr