mirror of
https://github.com/bitwarden/server.git
synced 2025-05-18 01:55:37 -05:00
Updated Braintree ID string validation to account for providers (#5794)
This commit is contained in:
parent
a973a11d90
commit
9e2562fc8d
@ -17,7 +17,7 @@ public class ChargeBraintreeModel : IValidatableObject
|
||||
{
|
||||
if (Id != null)
|
||||
{
|
||||
if (Id.Length != 36 || (Id[0] != 'o' && Id[0] != 'u') ||
|
||||
if (Id.Length != 36 || (Id[0] != 'o' && Id[0] != 'u' && Id[0] != 'p') ||
|
||||
!Guid.TryParse(Id.Substring(1, 32), out var guid))
|
||||
{
|
||||
yield return new ValidationResult("Customer Id is not a valid format.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user