Remove quick connect tokens after usage

This commit is contained in:
Matt Montgomery 2021-01-01 17:26:31 -06:00
parent 5932b967b7
commit 8dd83327b5

View File

@ -1456,7 +1456,12 @@ namespace Emby.Server.Implementations.Session
throw new SecurityException("Unknown quick connect token"); throw new SecurityException("Unknown quick connect token");
} }
request.UserId = result.Items[0].UserId; var info = result.Items[0];
request.UserId = info.UserId;
// There's no need to keep the quick connect token in the database, as AuthenticateNewSessionInternal() issues a long lived token.
_authRepo.Delete(info);
return AuthenticateNewSessionInternal(request, false); return AuthenticateNewSessionInternal(request, false);
} }