unsloth/studio/frontend/src/features/settings/components
Daniel Han 494e0e6fe4
studio: let users change their password from Settings (#6520)
* studio: let users change their password from Settings

The only day-to-day way to change credentials was the destructive console command
'unsloth studio reset-password' (it deletes auth.db); the in-app change-password
page is the forced first-login flow and bounces non-forced users to /login.

Add a Change password control to Settings > General > Account: a small dialog
that takes the current and new password and calls the existing
POST /api/auth/change-password, then stores the rotated tokens it returns.
Username changes remain out of scope.

The dialog uses authFetch, so an expired access token is refreshed and the
request retried instead of failing with a spurious expired-token error for a user
who left Studio open past the token lifetime. The row is hidden in the Tauri
desktop app, which authenticates via desktop auto-auth with a generated secret:
there is no user-entered password to change there, and changing it would clear
the desktop secret.

* studio: harden settings password change

* studio: harden settings password dialog UX

---------

Co-authored-by: wasimysaid <wasimysdev@gmail.com>
2026-06-22 07:49:13 -07:00
..
api-key-row.tsx Studio: add frontend i18n support (#5765) 2026-05-27 04:52:16 -07:00
api-monitor-console.tsx Add API server monitor in Studio (#5558) 2026-06-16 20:26:13 +01:00
archived-chats-dialog.tsx Studio: UI polish for sidebar, menus, hub and toasts (#6288) 2026-06-13 03:50:36 -07:00
change-password-dialog.tsx studio: let users change their password from Settings (#6520) 2026-06-22 07:49:13 -07:00
create-key-form.tsx feat(hub): full-page redesign with trending feed, search, and persisted state (#6349) 2026-06-17 04:50:34 -07:00
key-reveal-card.tsx Studio: clearer check mark and even plus-menu hover padding (#6253) 2026-06-12 06:44:08 -07:00
language-select.tsx Studio: add frontend i18n support (#5765) 2026-05-27 04:52:16 -07:00
settings-row.tsx Studio: redesign Select model dropdown to match Hub design (#6364) 2026-06-22 04:33:04 -07:00
settings-section.tsx Studio: pinnable plus menu items and saved prompt pins (#6237) 2026-06-12 04:17:45 -07:00
studio-version-section.tsx Studio: add Studio version info to General settings (#5675) 2026-06-15 11:41:12 -07:00
theme-segmented.tsx feat(hub): full-page redesign with trending feed, search, and persisted state (#6349) 2026-06-17 04:50:34 -07:00
update-studio-instructions.tsx feat(hub): full-page redesign with trending feed, search, and persisted state (#6349) 2026-06-17 04:50:34 -07:00
usage-examples.tsx feat(hub): full-page redesign with trending feed, search, and persisted state (#6349) 2026-06-17 04:50:34 -07:00