Updating RMS

This commit is contained in:
Zeeshaun
2026-03-23 19:23:05 +00:00
parent 71b614ec92
commit 69648a3b8f
6 changed files with 55 additions and 11 deletions
@@ -40,7 +40,11 @@ namespace ReserveManagementSystemUI.Helpers
}
var userName = authState.User.Identity.Name;
return userName[4..];
var slashIndex = userName.IndexOf('\\');
return slashIndex >= 0 && slashIndex < userName.Length - 1
? userName[(slashIndex + 1)..]
: userName;
}
}
}