mirror of
https://github.com/bitwarden/server
synced 2025-12-22 03:03:33 +00:00
send keys with profile
This commit is contained in:
@@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user