mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 22:07:13 -04:00
Remove variables from SecurityException
This commit is contained in:
parent
a9e5f6e770
commit
b130af1b0c
@ -1489,12 +1489,7 @@ namespace Emby.Server.Implementations.Session
|
|||||||
_logger.LogDebug("Current/Max sessions for user {User}: {Sessions}/{Max}", user.Username, sessionsCount, maxActiveSessions);
|
_logger.LogDebug("Current/Max sessions for user {User}: {Sessions}/{Max}", user.Username, sessionsCount, maxActiveSessions);
|
||||||
if (maxActiveSessions >= 0 && sessionsCount >= maxActiveSessions)
|
if (maxActiveSessions >= 0 && sessionsCount >= maxActiveSessions)
|
||||||
{
|
{
|
||||||
throw new SecurityException(
|
throw new SecurityException("User is at their maximum number of sessions.");
|
||||||
"User {User} is at their maximum number of sessions ({Sessions}/{Max}).",
|
|
||||||
user.Username,
|
|
||||||
sessionsCount,
|
|
||||||
maxActiveSessions
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var token = GetAuthorizationToken(user, request.DeviceId, request.App, request.AppVersion, request.DeviceName);
|
var token = GetAuthorizationToken(user, request.DeviceId, request.App, request.AppVersion, request.DeviceName);
|
||||||
|
Loading…
Reference in New Issue
Block a user