Arthur Lefebvre 60c8f37257 Store JWT key in config file
- During config file creation, the generated JWT key will be stored.
- Added an option to disable this behavior.
2026-03-04 14:58:35 +01:00
2026-03-04 14:58:35 +01:00
2025-11-25 14:14:24 +01:00
2026-03-03 21:54:50 +01:00
2026-03-02 15:29:24 +01:00

Generate new accounts on startup

--add-user or -a can be used to create an account on startup. It requires a string following htpasswd format [username]:[bcrypt hashed password].

The password can be generated using htpasswd -nB [username].

For example, to create an user account demo:

htpasswd -nBC10 demo
New password: 
Re-type new password: 
demo:$2y$10$UHR2646SZo2W.Rhna7bn5eWNLXWJZ/Sa3oLd9RlxlXs57Bwp6isOS

Then, starting the server:

./PersonalLibraryManager -a 'demo:$2y$10$UHR2646SZo2W.Rhna7bn5eWNLXWJZ/Sa3oLd9RlxlXs57Bwp6isOS'

This will create on startup a new demo user if it does not exist already. Like every parameter, you can also edit add-user in the configuration file.

Description
No description provided
Readme AGPL-3.0 2.3 MiB
Release 0.3.0 Latest
2026-03-08 18:06:20 +00:00
Languages
Go 65.1%
Vue 28.9%
JavaScript 5.3%
Dockerfile 0.3%
HTML 0.2%