Fixed updating last login date on AuthenticateUser

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti 2012-09-07 15:22:37 -04:00
parent 24d221709d
commit 97a11da208
2 changed files with 9 additions and 9 deletions

View File

@ -218,6 +218,7 @@ namespace MediaBrowser.Controller
else
{
result.Success = GetMD5((password ?? string.Empty)).Equals(user.Password);
}
// Update LastActivityDate and LastLoginDate, then save
if (result.Success)
@ -225,7 +226,6 @@ namespace MediaBrowser.Controller
user.LastActivityDate = user.LastLoginDate = DateTime.UtcNow;
SaveUser(user);
}
}
return result;
}

View File

@ -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
{