mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
add api support for updating org identifier (#861)
* add api support for updating org identifier * add identifier to response as well * implement in EF repo
This commit is contained in:
@ -10,6 +10,8 @@ namespace Bit.Core.Models.Api
|
||||
public string Name { get; set; }
|
||||
[StringLength(50)]
|
||||
public string BusinessName { get; set; }
|
||||
[StringLength(50)]
|
||||
public string Identifier { get; set; }
|
||||
[EmailAddress]
|
||||
[Required]
|
||||
[StringLength(50)]
|
||||
@ -20,6 +22,7 @@ namespace Bit.Core.Models.Api
|
||||
existingOrganization.Name = Name;
|
||||
existingOrganization.BusinessName = BusinessName;
|
||||
existingOrganization.BillingEmail = BillingEmail?.ToLowerInvariant()?.Trim();
|
||||
existingOrganization.Identifier = Identifier;
|
||||
return existingOrganization;
|
||||
}
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ namespace Bit.Core.Models.Api
|
||||
}
|
||||
|
||||
Id = organization.Id.ToString();
|
||||
Identifier = organization.Identifier;
|
||||
Name = organization.Name;
|
||||
BusinessName = organization.BusinessName;
|
||||
BusinessAddress1 = organization.BusinessAddress1;
|
||||
@ -44,6 +45,7 @@ namespace Bit.Core.Models.Api
|
||||
}
|
||||
|
||||
public string Id { get; set; }
|
||||
public string Identifier { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string BusinessName { get; set; }
|
||||
public string BusinessAddress1 { get; set; }
|
||||
|
Reference in New Issue
Block a user