aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Core/Security/AuthenticationRepository.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-17 01:54:24 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-17 01:54:24 -0500
commit1adfbfadf16fc7903f9d640c8b1f74b2e05f26a6 (patch)
tree5dc7aef15d24ee52571db44ddaebdfa41a6e397a /Emby.Server.Core/Security/AuthenticationRepository.cs
parent827665390dbe51a15c41f06e294404617377e8f5 (diff)
fix ExternalId being lost
Diffstat (limited to 'Emby.Server.Core/Security/AuthenticationRepository.cs')
-rw-r--r--Emby.Server.Core/Security/AuthenticationRepository.cs22
1 files changed, 10 insertions, 12 deletions
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;