1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-29 15:24:51 -05:00

send keys with profile

This commit is contained in:
Kyle Spearrin 2017-05-31 17:00:01 -04:00
parent 9abc16504b
commit 57b4a32194
2 changed files with 6 additions and 1 deletions

View File

@ -23,6 +23,8 @@ namespace Bit.Core.Models.Api
MasterPasswordHint = string.IsNullOrWhiteSpace(user.MasterPasswordHint) ? null : user.MasterPasswordHint; MasterPasswordHint = string.IsNullOrWhiteSpace(user.MasterPasswordHint) ? null : user.MasterPasswordHint;
Culture = user.Culture; Culture = user.Culture;
TwoFactorEnabled = user.TwoFactorEnabled; TwoFactorEnabled = user.TwoFactorEnabled;
Key = user.Key;
PrivateKey = user.PrivateKey;
Organizations = organizationsUserDetails?.Select(o => new ProfileOrganizationResponseModel(o)); Organizations = organizationsUserDetails?.Select(o => new ProfileOrganizationResponseModel(o));
} }
@ -32,6 +34,8 @@ namespace Bit.Core.Models.Api
public string MasterPasswordHint { get; set; } public string MasterPasswordHint { get; set; }
public string Culture { get; set; } public string Culture { get; set; }
public bool TwoFactorEnabled { get; set; } public bool TwoFactorEnabled { get; set; }
public string Key { get; set; }
public string PrivateKey { get; set; }
public IEnumerable<ProfileOrganizationResponseModel> Organizations { get; set; } public IEnumerable<ProfileOrganizationResponseModel> Organizations { get; set; }
} }
} }

View File

@ -160,7 +160,8 @@ namespace Bit.Core.Services
return new MailMessage return new MailMessage
{ {
ToEmails = toEmails, ToEmails = toEmails,
Subject = subject Subject = subject,
MetaData = new Dictionary<string, object>()
}; };
} }