From f5d4eb244a4c050b2c50697b66aafbe6028a0744 Mon Sep 17 00:00:00 2001 From: Jxiced Date: Sat, 22 Feb 2025 14:36:10 +0000 Subject: [PATCH 1/2] Prevent exception being thrown when renaming user. --- src/apps/dashboard/routes/users/profile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/dashboard/routes/users/profile.tsx b/src/apps/dashboard/routes/users/profile.tsx index fa4b077845..2f98d67bd3 100644 --- a/src/apps/dashboard/routes/users/profile.tsx +++ b/src/apps/dashboard/routes/users/profile.tsx @@ -199,7 +199,7 @@ const UserEdit = () => { throw new Error('Unexpected null user id or policy'); } - user.Name = (page.querySelector('#txtUserName') as HTMLInputElement).value; + user.Name = (page.querySelector('#txtUserName') as HTMLInputElement).value.trim(); user.Policy.IsAdministrator = (page.querySelector('.chkIsAdmin') as HTMLInputElement).checked; user.Policy.IsHidden = (page.querySelector('.chkIsHidden') as HTMLInputElement).checked; user.Policy.IsDisabled = (page.querySelector('.chkDisabled') as HTMLInputElement).checked; From 62438c6948ec0ee0e9e50e0a9fd689adfc3284e0 Mon Sep 17 00:00:00 2001 From: Jxiced Date: Sat, 22 Feb 2025 14:58:58 +0000 Subject: [PATCH 2/2] Update contributors. --- CONTRIBUTORS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index c79fa08ca9..8737fc166b 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -95,6 +95,7 @@ - [Ali](https://github.com/bu3alwa) - [K. Kyle Puchkov](https://github.com/kepper104) - [ItsAllAboutTheCode](https://github.com/ItsAllAboutTheCode) +- [Jxiced](https://github.com/Jxiced) ## Emby Contributors