mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2026-08-13 12:33:07 +02:00
Fix the regtest fixture using a password RTL blacklists
The fixture added in #1621 set multiPass to "password". RTL blacklists weak passwords (PASSWORD_BLACKLIST in consts-enums-functions.ts: 'password', 'changeme', 'moneyprintergobrrr') and forces a change when one is used: login.component.ts sets defaultPassword: true, and app.component.ts then redirects to /rtl/settings/auth. So every login with the documented password was bounced to the change password screen and never reached the dashboard. The check is session based rather than first run only, so this happened on every fresh browser session, not just the first. Password is now 'rtldev'. .env documents why it must stay off the blacklist.
This commit is contained in:
parent
6a01e96c98
commit
df48de1140
3 changed files with 7 additions and 4 deletions
|
|
@ -24,6 +24,9 @@ ALICE_REST_PORT=8081
|
|||
BOB_REST_PORT=8082
|
||||
CAROL_REST_PORT=8083
|
||||
|
||||
# RTL
|
||||
# RTL. Must not be one of RTL's blacklisted weak passwords
|
||||
# ('password', 'changeme', 'moneyprintergobrrr') or RTL forces a password change
|
||||
# on every login and parks you on the auth settings screen. Set in
|
||||
# rtl/RTL-Config.regtest.json as multiPass; this is only used for messages.
|
||||
RTL_PORT=3000
|
||||
RTL_PASSWORD=password
|
||||
RTL_PASSWORD=rtldev
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ docker compose up -d # bitcoind, alice, bob, carol, rtl
|
|||
./scripts/seed.sh # fund, connect, open channels, make payments
|
||||
```
|
||||
|
||||
Then open <http://localhost:3000> — password `password`. All three nodes appear in
|
||||
Then open <http://localhost:3000> — password `rtldev`. All three nodes appear in
|
||||
the node switcher.
|
||||
|
||||
Tear down, discarding all state:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"multiPass": "password",
|
||||
"multiPass": "rtldev",
|
||||
"port": "3000",
|
||||
"defaultNodeIndex": 1,
|
||||
"dbDirectoryPath": "/RTL/database",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue