mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +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.BusinessName = BusinessName;
|
||||
existingOrganization.BillingEmail = BillingEmail;
|
||||
existingOrganization.BillingEmail = BillingEmail?.ToLowerInvariant()?.Trim();
|
||||
existingOrganization.PlanType = PlanType.Value;
|
||||
existingOrganization.Plan = Plan;
|
||||
existingOrganization.Seats = Seats;
|
||||
|
@ -55,7 +55,7 @@ namespace Bit.Core.Models.Table
|
||||
|
||||
public string BillingEmailAddress()
|
||||
{
|
||||
return BillingEmail;
|
||||
return BillingEmail?.ToLowerInvariant()?.Trim();
|
||||
}
|
||||
|
||||
public string BillingName()
|
||||
|
@ -50,7 +50,7 @@ namespace Bit.Core.Models.Table
|
||||
|
||||
public string BillingEmailAddress()
|
||||
{
|
||||
return Email;
|
||||
return Email?.ToLowerInvariant()?.Trim();
|
||||
}
|
||||
|
||||
public string BillingName()
|
||||
|
Loading…
Reference in New Issue
Block a user