From 16520e605b440818865e3cc80a2f95d8050cea65 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Wed, 23 Jan 2019 11:46:35 +0300 Subject: [PATCH] Resolved #753 --- .../Volo/Abp/Identity/IdentityUser.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUser.cs b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUser.cs index 365704914b..f75bf32aaf 100644 --- a/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUser.cs +++ b/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityUser.cs @@ -130,7 +130,7 @@ namespace Volo.Abp.Identity ExtraProperties = new Dictionary(); } - public IdentityUser(Guid id, [NotNull] string userName, [NotNull] string email, Guid? tenantId = null) + public IdentityUser(Guid id, [NotNull] string userName, string email = null, Guid? tenantId = null) { Check.NotNull(userName, nameof(userName)); @@ -139,7 +139,7 @@ namespace Volo.Abp.Identity UserName = userName; NormalizedUserName = userName.ToUpperInvariant(); Email = email; - NormalizedEmail = email.ToUpperInvariant(); + NormalizedEmail = email?.ToUpperInvariant(); ConcurrencyStamp = Guid.NewGuid().ToString(); SecurityStamp = Guid.NewGuid().ToString();