Skip to content

Commit c3be742

Browse files
authored
Merge pull request #1272 from ITfoxtec/test
Test
2 parents 8b4675f + 2464cd7 commit c3be742

File tree

14 files changed

+527
-63
lines changed

14 files changed

+527
-63
lines changed

docs/users-upload.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ The seed tool reads users from a `CSV` file and upload the users to the configur
3030

3131
The CSV file elements are separated with `;` and the text can optionally be in quotation marks.
3232

33+
You can find sample CSV files here: [FoxIDs.SeedTool/user_upload_csv_files](https://github.com/ITfoxtec/FoxIDs/tree/main/tools/FoxIDs.SeedTool/user_upload_csv_files)
34+
(For example, see UTF-8 characters in claims in the file password-claims-3-test-users.csv demonstrating multi-language / extended character support.)
35+
3336
The first line of the CSV file is the case sensitive headers. You can select to use all headers or a subset of the headers and change the order of the headers.
3437
The headers:
3538

src/FoxIDs.Control/Controllers/Tracks/TUserController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ public TUserController(TelemetryScopedLogger logger, IServiceProvider servicePro
5656
ModelState.TryAddModelError(string.Empty, $"The {nameof(email)} or {nameof(phone)} or {nameof(username)} parameter is required.");
5757
return BadRequest(ModelState);
5858
}
59-
email = email?.Trim().ToLower();
60-
phone = phone?.Trim();
61-
username = username?.Trim()?.ToLower();
59+
email = email.IsNullOrWhiteSpace() ? null : email.Trim().ToLower();
60+
phone = phone.IsNullOrWhiteSpace() ? null : phone.Trim();
61+
username = username.IsNullOrWhiteSpace() ? null : username.Trim().ToLower();
6262

6363
var mUser = await tenantDataRepository.GetAsync<User>(await Models.User.IdFormatAsync(RouteBinding, new User.IdKey { Email = email, UserIdentifier = phone ?? username }), queryAdditionalIds: true);
6464
return Ok(mapper.Map<Api.User>(mUser));

src/FoxIDs.Control/FoxIDs.Control.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>2.2.1</Version>
5+
<Version>2.2.2</Version>
66
<RootNamespace>FoxIDs</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>FoxIDs</Company>

src/FoxIDs.ControlClient/FoxIDs.ControlClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>2.2.1</Version>
5+
<Version>2.2.2</Version>
66
<RootNamespace>FoxIDs.Client</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>FoxIDs</Company>

src/FoxIDs.ControlShared/FoxIDs.ControlShared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>2.2.1</Version>
5+
<Version>2.2.2</Version>
66
<RootNamespace>FoxIDs</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>FoxIDs</Company>

src/FoxIDs.Shared/FoxIDs.Shared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>2.2.1</Version>
5+
<Version>2.2.2</Version>
66
<RootNamespace>FoxIDs</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>FoxIDs</Company>

0 commit comments

Comments
 (0)