Add display name to profile settings: User type, updateDisplayName API, ProfileSettings

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Usman Baig
2026-02-08 01:50:33 +01:00
parent 77cb9eaed1
commit d96f7cf1a4
5 changed files with 22 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ import { useAuth } from '@/lib/auth/context'
import { ProfileSettings as SharedProfileSettings } from '@ciphera-net/ui'
import api from '@/lib/api/client'
import { deriveAuthKey } from '@/lib/crypto/password'
import { deleteAccount, getUserSessions, revokeSession, updateUserPreferences } from '@/lib/api/user'
import { deleteAccount, getUserSessions, revokeSession, updateUserPreferences, updateDisplayName } from '@/lib/api/user'
import { setup2FA, verify2FA, disable2FA, regenerateRecoveryCodes } from '@/lib/api/2fa'
export default function ProfileSettings() {
@@ -37,6 +37,7 @@ export default function ProfileSettings() {
<SharedProfileSettings
user={user}
onUpdateProfile={handleUpdateProfile}
onUpdateDisplayName={updateDisplayName}
onUpdatePassword={handleUpdatePassword}
onDeleteAccount={deleteAccount}
onSetup2FA={setup2FA}