Repository navigation
Conversation
… transitions); delete old single-file frontend
…after green CI on beta
…n banner - web: new /login page + auth layout; 401 and missing-token now route to /login instead of window.prompt; update all pages to drop setToken param - main: print boxed, easy-to-spot admin token on startup (plaintext by default, LIAPI_MASK_ADMIN_TOKEN=1 to mask) - rebuild embedded adminui artifact
Admin UI login now uses a username + password (PBKDF2-HMAC-SHA256 salted hash) instead of pasting the admin token. Login issues a short-lived session token; logout invalidates it server-side. The static admin_token remains valid for /metrics and automation. Client API keys for calling models are unchanged. - common/password.go: PBKDF2 hash/verify + random password (stdlib only, go 1.22 compatible) - config: admin_username/admin_password_hash fields; seed random credentials on first run - auth: Login/Logout + in-memory session store; Authenticate accepts session or admin token - server: POST /admin/api/login|logout, GET /admin/api/me; mask/restore password hash in config round-trip - web: login page username+password; useApi login()/logout(); rebuild server/adminui - docs: sync DEVELOPMENT.md and README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
全面更新