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:
parent
9abc16504b
commit
57b4a32194
@ -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>()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user