Files
FreedomBox/freedombox/modules/users
Sunil Mohan Adapa 9f45088c65 users: Improve checks for creating initial user during firstboot
Tests:

- On a fresh development machine, first setup works. Admin account is created
along with LDAP user the account.

- After plinth.sqlite3 file is removed, first setup is triggered and it works.
Admin account is created along with LDAP user the account.

- When admin account is created without firstboot-wizard-secret, and the first
wizard is waiting on the next step, visiting the user creation page does not
work. Posting directly using the script also does not work.

- When admin account is created without firstboot-wizard-secret, and the first
wizard is waiting on the next step, remove the user_firstboot flag from the
kvstore manually. Visiting the user creation page works. Posting to it does not
work as admin user already exists.

- When firstboot-wizard-secret file is present, first setup is triggered,
skipping the secret is not possible via URL visit in browser and using a script
that posts directly.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2026-11-28 08:31:51 -05:00
..