From 1adfbfadf16fc7903f9d640c8b1f74b2e05f26a6 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 17 Nov 2016 01:54:24 -0500 Subject: fix ExternalId being lost --- .../Security/AuthenticationRepository.cs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'Emby.Server.Core/Security/AuthenticationRepository.cs') diff --git a/Emby.Server.Core/Security/AuthenticationRepository.cs b/Emby.Server.Core/Security/AuthenticationRepository.cs index eaf91c710..548585375 100644 --- a/Emby.Server.Core/Security/AuthenticationRepository.cs +++ b/Emby.Server.Core/Security/AuthenticationRepository.cs @@ -80,18 +80,16 @@ namespace Emby.Server.Core.Security { transaction = connection.BeginTransaction(); - var index = 0; - - saveInfoCommand.GetParameter(index++).Value = new Guid(info.Id); - saveInfoCommand.GetParameter(index++).Value = info.AccessToken; - saveInfoCommand.GetParameter(index++).Value = info.DeviceId; - saveInfoCommand.GetParameter(index++).Value = info.AppName; - saveInfoCommand.GetParameter(index++).Value = info.AppVersion; - saveInfoCommand.GetParameter(index++).Value = info.DeviceName; - saveInfoCommand.GetParameter(index++).Value = info.UserId; - saveInfoCommand.GetParameter(index++).Value = info.IsActive; - saveInfoCommand.GetParameter(index++).Value = info.DateCreated; - saveInfoCommand.GetParameter(index++).Value = info.DateRevoked; + saveInfoCommand.GetParameter("@Id").Value = new Guid(info.Id); + saveInfoCommand.GetParameter("@AccessToken").Value = info.AccessToken; + saveInfoCommand.GetParameter("@DeviceId").Value = info.DeviceId; + saveInfoCommand.GetParameter("@AppName").Value = info.AppName; + saveInfoCommand.GetParameter("@AppVersion").Value = info.AppVersion; + saveInfoCommand.GetParameter("@DeviceName").Value = info.DeviceName; + saveInfoCommand.GetParameter("@UserId").Value = info.UserId; + saveInfoCommand.GetParameter("@IsActive").Value = info.IsActive; + saveInfoCommand.GetParameter("@DateCreated").Value = info.DateCreated; + saveInfoCommand.GetParameter("@DateRevoked").Value = info.DateRevoked; saveInfoCommand.Transaction = transaction; -- cgit v1.2.3