Fixed updating last login date on AuthenticateUser

pull/702/head
LukePulverenti Luke Pulverenti luke pulverenti 12 years ago
parent 24d221709d
commit 97a11da208

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

@ -1,11 +1,11 @@
using System; using MediaBrowser.Controller.IO;
using MediaBrowser.Model.Entities;
using System;
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using MediaBrowser.Controller.IO;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Controller.Library namespace MediaBrowser.Controller.Library
{ {

Loading…
Cancel
Save