mirror of
https://github.com/bitwarden/server.git
synced 2025-07-06 18:42:49 -05:00
return twofactor enabled property on org users api
This commit is contained in:
@ -61,7 +61,7 @@ namespace Bit.Core.Models.Api
|
||||
public class OrganizationUserUserDetailsResponseModel : OrganizationUserResponseModel
|
||||
{
|
||||
public OrganizationUserUserDetailsResponseModel(OrganizationUserUserDetails organizationUser,
|
||||
string obj = "organizationUserUserDetails")
|
||||
bool twoFactorEnabled, string obj = "organizationUserUserDetails")
|
||||
: base(organizationUser, obj)
|
||||
{
|
||||
if(organizationUser == null)
|
||||
@ -71,9 +71,11 @@ namespace Bit.Core.Models.Api
|
||||
|
||||
Name = organizationUser.Name;
|
||||
Email = organizationUser.Email;
|
||||
TwoFactorEnabled = twoFactorEnabled;
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Email { get; set; }
|
||||
public bool TwoFactorEnabled { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user