fix: resolve user dashboard field mapping and session consistency
Some checks failed
CI / Lint (push) Has been cancelled
CI / Test (push) Has been cancelled
CI / Build (push) Has been cancelled

Added JSON tags to the User struct to match frontend expectations and excluded sensitive fields.
Updated session management to include and persist DisplayName.
Unified user field names (using display_name) across backend, sessions, and frontend UI.
This commit is contained in:
2026-03-19 14:01:59 -04:00
parent 0ea2a3a985
commit 0f0486d8d4
4 changed files with 43 additions and 42 deletions

View File

@@ -167,7 +167,7 @@ class AuthManager {
const userRoleElement = document.querySelector('.user-role');
if (userNameElement && this.user) {
userNameElement.textContent = this.user.name || this.user.username || 'User';
userNameElement.textContent = this.user.display_name || this.user.username || 'User';
}
if (userRoleElement && this.user) {