The Free Software Media System - Server Backend & API
Remove variables from SecurityException
Joshua M. Bonifaceb130af1b0c86
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.csindex ac59fe3860..46fa29919a 100644--- a/Emby.Server.Implementations/Session/SessionManager.cs+++ b/Emby.Server.Implementations/Session/SessionManager.cs@@ -1489,12 +1489,7 @@ namespace Emby.Server.Implementations.Session_logger.LogDebug("Current/Max sessions for user {User}: {Sessions}/{Max}", user.Username, sessionsCount, maxActiveSessions);if (maxActiveSessions >= 0 && sessionsCount >= maxActiveSessions){- throw new SecurityException(- "User {User} is at their maximum number of sessions ({Sessions}/{Max}).",- user.Username,- sessionsCount,- maxActiveSessions- );+ throw new SecurityException("User is at their maximum number of sessions.");}var token = GetAuthorizationToken(user, request.DeviceId, request.App, request.AppVersion, request.DeviceName);