sync updates

This commit is contained in:
Luke Pulverenti
2015-01-30 00:18:32 -05:00
parent a6145e54d9
commit 792e4c4f1b
81 changed files with 505 additions and 147 deletions

View File

@@ -402,6 +402,19 @@ namespace MediaBrowser.Server.Implementations.Library
return dto;
}
public UserDto GetOfflineUserDto(User user, string deviceId)
{
var dto = GetUserDto(user);
var offlinePasswordHash = GetLocalPasswordHash(user);
dto.HasPassword = !IsPasswordEmpty(offlinePasswordHash);
// Hash the pin with the device Id to create a unique result for this device
dto.OfflinePassword = GetSha1String(offlinePasswordHash + deviceId);
return dto;
}
private string GetImageCacheTag(BaseItem item, ItemImageInfo image)
{
try