3x-ui/internal/web/service/panel
MHSanaei 1df8ab29f8 fix(database): create the first panel user with random credentials
The first user is now created when the server starts, with a random
username and password printed once to its log (docker logs, the journal),
instead of a fixed pair seeded by InitDB. CLI calls that initialize the
database are often piped away, as the Docker entrypoint's port lookup is, so
only the server's own log reliably reaches the operator.

`x-ui setting -show` keeps reporting hasDefaultCredential: true until a user
exists, so install.sh still sets its own credentials on a fresh install.
Existing databases are not changed. Verified on a built binary: fresh
setting -show, install.sh-style credential set, first start, login and
restart. The PostgreSQL lane was not run locally; the change adds no query.
2026-10-24 01:26:05 +02:00
..
api_token.go fix(auth): add node-admin token scope for panel updates (#6666) 2026-10-17 23:45:26 +02:00
api_token_scope_test.go fix(auth): add node-admin token scope for panel updates (#6666) 2026-10-17 23:45:26 +02:00
api_token_test.go fix(auth): add node-admin token scope for panel updates (#6666) 2026-10-17 23:45:26 +02:00
panel.go refactor(util): move panel version comparison into a shared package 2026-10-02 23:56:52 +02:00
panel_other.go fix: make all self-managed file downloads/installs atomic, with real completion status (#5711) 2026-07-02 18:19:33 +02:00
panel_test.go refactor(util): move panel version comparison into a shared package 2026-10-02 23:56:52 +02:00
panel_unix.go fix: make all self-managed file downloads/installs atomic, with real completion status (#5711) 2026-07-02 18:19:33 +02:00
sponsor.go fix(sponsor): fetch sponsor data from raw.githubusercontent.com 2026-10-14 17:10:02 +02:00
sponsor_test.go feat(sponsors): drop the sidebar slot and simplify the Sponsors page 2026-10-13 23:32:56 +02:00
user.go fix(database): create the first panel user with random credentials 2026-10-24 01:26:05 +02:00
user_test.go fix(database): create the first panel user with random credentials 2026-10-24 01:26:05 +02:00
websocket.go style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00