aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Core/Security/AuthenticationRepository.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-11-17 02:06:35 -0500
committerGitHub <noreply@github.com>2016-11-17 02:06:35 -0500
commitd8f40438d499c7a5caa48fe7b1f05ede83a02f1a (patch)
tree29e8c660f108f9efe1d099e20d0a2b04be7bb33e /Emby.Server.Core/Security/AuthenticationRepository.cs
parent43ee35a19c4e5b3a1a4977fbf38bea70c700c6ca (diff)
parent5bcc419857f9445bc5964d0518c656090b2ae4ee (diff)
Merge pull request #2293 from MediaBrowser/dev
Dev
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;