diff --git a/src/Core/Models/Api/Response/ProfileResponseModel.cs b/src/Core/Models/Api/Response/ProfileResponseModel.cs index 0f7f5ba1a..c4087a653 100644 --- a/src/Core/Models/Api/Response/ProfileResponseModel.cs +++ b/src/Core/Models/Api/Response/ProfileResponseModel.cs @@ -23,6 +23,8 @@ namespace Bit.Core.Models.Api MasterPasswordHint = string.IsNullOrWhiteSpace(user.MasterPasswordHint) ? null : user.MasterPasswordHint; Culture = user.Culture; TwoFactorEnabled = user.TwoFactorEnabled; + Key = user.Key; + PrivateKey = user.PrivateKey; Organizations = organizationsUserDetails?.Select(o => new ProfileOrganizationResponseModel(o)); } @@ -32,6 +34,8 @@ namespace Bit.Core.Models.Api public string MasterPasswordHint { get; set; } public string Culture { get; set; } public bool TwoFactorEnabled { get; set; } + public string Key { get; set; } + public string PrivateKey { get; set; } public IEnumerable Organizations { get; set; } } } diff --git a/src/Core/Services/Implementations/RazorViewMailService.cs b/src/Core/Services/Implementations/RazorViewMailService.cs index 8a5d94ef0..92f06e698 100644 --- a/src/Core/Services/Implementations/RazorViewMailService.cs +++ b/src/Core/Services/Implementations/RazorViewMailService.cs @@ -160,7 +160,8 @@ namespace Bit.Core.Services return new MailMessage { ToEmails = toEmails, - Subject = subject + Subject = subject, + MetaData = new Dictionary() }; }