1
0
mirror of https://github.com/bitwarden/server synced 2025-12-21 10:43:44 +00: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:
Kyle Spearrin
2020-08-12 16:38:22 -04:00
committed by GitHub
parent c8220fdfa6
commit 056b4b9bf4
8 changed files with 72 additions and 0 deletions

View File

@@ -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;
}
}