1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-29 13:25:17 +01:00

trim and tolower billing email

This commit is contained in:
Kyle Spearrin 2019-06-12 22:08:53 -04:00
parent ad7c4b89c4
commit 1c57492028
3 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@ namespace Bit.Admin.Models
{ {
existingOrganization.Name = Name; existingOrganization.Name = Name;
existingOrganization.BusinessName = BusinessName; existingOrganization.BusinessName = BusinessName;
existingOrganization.BillingEmail = BillingEmail; existingOrganization.BillingEmail = BillingEmail?.ToLowerInvariant()?.Trim();
existingOrganization.PlanType = PlanType.Value; existingOrganization.PlanType = PlanType.Value;
existingOrganization.Plan = Plan; existingOrganization.Plan = Plan;
existingOrganization.Seats = Seats; existingOrganization.Seats = Seats;

View File

@ -55,7 +55,7 @@ namespace Bit.Core.Models.Table
public string BillingEmailAddress() public string BillingEmailAddress()
{ {
return BillingEmail; return BillingEmail?.ToLowerInvariant()?.Trim();
} }
public string BillingName() public string BillingName()

View File

@ -50,7 +50,7 @@ namespace Bit.Core.Models.Table
public string BillingEmailAddress() public string BillingEmailAddress()
{ {
return Email; return Email?.ToLowerInvariant()?.Trim();
} }
public string BillingName() public string BillingName()