Skip to content

Commit

Permalink
fix bug where register crashen on org nr with language (#276)
Browse files Browse the repository at this point in the history
Co-authored-by: Hammerbeck <[email protected]>
  • Loading branch information
Andreass2 and Hammerbeck authored Sep 17, 2024
1 parent b6a65a8 commit 2494f1f
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ public AltinnRegisterService(HttpClient httpClient, IOptions<AltinnOptions> alti
if (organizationWithPrefixFormat.IsMatch(identificationId))
{
identificationId = identificationId.Substring(5);
{
_logger.LogError("OrganizationId must be 9 digits long.");
return null;
}
}
var personFormat = new Regex(@"^\d{11}$");
if (!personFormat.IsMatch(identificationId) && !organizationWithoutPrefixFormat.IsMatch(identificationId))
Expand Down

0 comments on commit 2494f1f

Please sign in to comment.