From 57b4a32194b8011a3f987f5d7164ed3858418f27 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 31 May 2017 17:00:01 -0400 Subject: [PATCH] send keys with profile --- src/Core/Models/Api/Response/ProfileResponseModel.cs | 4 ++++ src/Core/Services/Implementations/RazorViewMailService.cs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Core/Models/Api/Response/ProfileResponseModel.cs b/src/Core/Models/Api/Response/ProfileResponseModel.cs index 0f7f5ba1ad..c4087a653d 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 8a5d94ef04..92f06e6981 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() }; }