From 97a11da208b386d65ac9058b99cdcb635a69b603 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Fri, 7 Sep 2012 15:22:37 -0400 Subject: [PATCH] Fixed updating last login date on AuthenticateUser --- MediaBrowser.Controller/Kernel.cs | 12 ++++++------ MediaBrowser.Controller/Library/ItemController.cs | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/MediaBrowser.Controller/Kernel.cs b/MediaBrowser.Controller/Kernel.cs index ea7b92872..f1d6d4d0f 100644 --- a/MediaBrowser.Controller/Kernel.cs +++ b/MediaBrowser.Controller/Kernel.cs @@ -218,13 +218,13 @@ namespace MediaBrowser.Controller else { result.Success = GetMD5((password ?? string.Empty)).Equals(user.Password); + } - // Update LastActivityDate and LastLoginDate, then save - if (result.Success) - { - user.LastActivityDate = user.LastLoginDate = DateTime.UtcNow; - SaveUser(user); - } + // Update LastActivityDate and LastLoginDate, then save + if (result.Success) + { + user.LastActivityDate = user.LastLoginDate = DateTime.UtcNow; + SaveUser(user); } return result; diff --git a/MediaBrowser.Controller/Library/ItemController.cs b/MediaBrowser.Controller/Library/ItemController.cs index a09f63401..2dae0de04 100644 --- a/MediaBrowser.Controller/Library/ItemController.cs +++ b/MediaBrowser.Controller/Library/ItemController.cs @@ -1,11 +1,11 @@ -using System; +using MediaBrowser.Controller.IO; +using MediaBrowser.Model.Entities; +using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; -using MediaBrowser.Controller.IO; -using MediaBrowser.Model.Entities; namespace MediaBrowser.Controller.Library {