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:
parent
ad7c4b89c4
commit
1c57492028
@ -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;
|
||||||
|
@ -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()
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user