lightning-terminal
lightning-terminal copied to clipboard
Login page shows misleading error when running without wallet
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
The same thing happens when wallet is locked, so I guess it may get be resolved as part of #121
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.