Commit Graph
24 Commits
Author SHA1 Message Date
gitlawrandjialin 350f398cde feat(users): add authentication source dropdown to the user form
The add / edit user drawer now exposes a Source select (Local / OIDC /
SAML / CAS) so an admin can flip an existing account between Local
password and an external IdP without touching the database. Mirrors
the matching `PUT /v1/users/{id}` change on the backend.

Password field follows the selected source:

* Hidden when source != Local — those users authenticate via the IdP
  and a local password row would be a /login bypass.
* Required when CREATE-with-Local, or when EDIT is switching an SSO
  user back to Local (the backend rejects SSO -> Local without a
  fresh password to avoid locking the user out of /login).
* Optional when editing an already-Local user, matching today's
  behaviour.

A switch in EDIT mode surfaces a tip explaining the side effect
(password cleared / new password required) so the consequence isn't
hidden. The Source select is disabled on self-edit — same guard the
role column already uses — so an admin can't lock themselves out by
flipping their own row to an external source.

Strings are added to all five locales; the IdP protocol acronyms
(OIDC / SAML / CAS) render verbatim and don't need translation keys.
2026-07-01 15:39:10 +08:00
jialinandjialin f719c11606 refactor(perferences): use center wrapper layout 2026-06-29 19:44:28 +08:00
jialin 9418e5b635 fix: get models in cloning 2026-02-10 11:33:24 +08:00
jialin da1efa9270 fix: password length 64 2025-12-17 16:15:34 +08:00
jialin bd46fcdc75 fix: container name in add worker 2025-12-17 14:59:07 +08:00
jialin 883e0ab115 feat: get initial password 2025-12-12 11:14:57 +08:00
jialin 19babbc73d style: adjust some styles 2025-11-21 12:16:49 +08:00
jialin ea39a45f31 fix: sglang enable across worker 2025-11-20 15:59:05 +08:00
jialin 7334bcdf83 fix: do not paste multiple lines 2025-11-06 15:37:42 +08:00
jialin a815e71bfe chore: show existing when add file 2025-10-23 11:52:49 +08:00
Hugo Haldiandjialin 521bf211a2 feat: add user activation control
- Add is_active field to user model
- Create SealCheckbox component with clickable container
- Add activation control to user modal
- Display user status in users table
- Add localization strings for activation features
2025-10-09 10:11:05 +08:00
forrestzhouandjialin 7f1bc33eed first push 0.7 2025-08-12 17:19:04 +08:00
jialin 6880fd3f5f fix: user settings locales 2025-06-09 18:45:47 +08:00
jialin 2c2e9396c4 fix: default route for logo 2025-02-23 13:32:03 +08:00
jialin 902bb06353 fix: logs viewer do not scroll after opened 2024-10-22 15:36:53 +08:00
jialin eb5cf9da8d fix: logs scrollbar ux 2024-10-22 09:29:03 +08:00
jialin 386f2969eb chore: upgrade check 2024-10-18 19:35:47 +08:00
jialin 2b1f5d38e1 chore: shortcut table 2024-08-26 19:12:08 +08:00
jialin 84bed59f21 fix: password rule 2024-08-26 11:30:13 +08:00
jialin e9d8828dcd fix: dashboard re-render 2024-07-04 17:43:39 +08:00
jialin faa4f88a6a fix: build image 2024-07-03 16:47:20 +08:00
jialin 018c8cd208 style: area chart 2024-06-30 21:30:42 +08:00
jialin d47e53114c chore: first login modify password 2024-06-29 20:29:11 +08:00
jialin 9edce7116e fix: languages config, update-password 2024-06-25 11:50:55 +08:00