From f09841876540a21dbae99d382c98b42aa9dd9335 Mon Sep 17 00:00:00 2001 From: mulygottlieb Date: Mon, 18 Nov 2024 16:00:57 +0200 Subject: [PATCH] fix: search for existing user in the normalized form --- package-lock.json | 3 ++- plugins/dotnet-auth-core-identity/package.json | 2 +- .../src/core/create-seed-development-data.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 39525dd3..9a7821e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15562,7 +15562,7 @@ }, "plugins/dotnet-auth-core-identity": { "name": "@amplication/plugin-dotnet-auth-core-identity", - "version": "0.1.3", + "version": "0.1.4", "license": "Apache-2.0", "devDependencies": { "@amplication/code-gen-types": "2.0.37", @@ -15901,6 +15901,7 @@ } }, "plugins/dotnet-backstage-catalog-entity": { + "name": "@amplication/plugin-dotnet-backstage-catalog-entity", "version": "0.0.1", "license": "Apache-2.0", "dependencies": { diff --git a/plugins/dotnet-auth-core-identity/package.json b/plugins/dotnet-auth-core-identity/package.json index bcc91a9b..b48b9685 100644 --- a/plugins/dotnet-auth-core-identity/package.json +++ b/plugins/dotnet-auth-core-identity/package.json @@ -1,6 +1,6 @@ { "name": "@amplication/plugin-dotnet-auth-core-identity", - "version": "0.1.3", + "version": "0.1.4", "description": "Add Authentication and Authorization to your .NET Services", "main": "dist/index.js", "nx": {}, diff --git a/plugins/dotnet-auth-core-identity/src/core/create-seed-development-data.ts b/plugins/dotnet-auth-core-identity/src/core/create-seed-development-data.ts index 248a0814..f6bd055d 100644 --- a/plugins/dotnet-auth-core-identity/src/core/create-seed-development-data.ts +++ b/plugins/dotnet-auth-core-identity/src/core/create-seed-development-data.ts @@ -31,7 +31,7 @@ export function CreateSeedDevelopmentDataBody( var usernameValue = "${seedUserEmail}"; var passwordValue = "${seedUserPassword}"; - var existingUser = await userStore.FindByEmailAsync(usernameValue); + var existingUser = await userStore.FindByEmailAsync(usernameValue.ToUpperInvariant()); if (existingUser != null) { return;