fix: resolve user dashboard field mapping and session consistency
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user