Browse Source

If LND wallet is locked at login, unlock it and remove (hardcode) the password

hardcoded-lnd-password
Luke Childs 4 years ago
parent
commit
30e46bd4b5
  1. 7
      logic/auth.js

7
logic/auth.js

@ -134,6 +134,13 @@ async function login(user) {
// on existing users without requiring them to change their password
setSystemPassword(user.password);
// This is only needed temporarily to remove the user set LND wallet
// password for old users and change it to a hardcoded one so we can
// auto unlock it in the future.
if (! (await lndApiService.getStatus()).data.unlocked) {
await lndApiService.changePassword(user.password, 'moneyprintergobrrr', jwt);
}
return { jwt: jwt };
} catch (error) {

Loading…
Cancel
Save