From 63b3e4d90d5a01cb4bdb46aa34dbbec10fab2b2e Mon Sep 17 00:00:00 2001 From: sbwalker Date: Thu, 13 Jul 2023 11:16:49 -0400 Subject: [PATCH] add handling for DisplayName --- Oqtane.Server/Infrastructure/UserManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Oqtane.Server/Infrastructure/UserManager.cs b/Oqtane.Server/Infrastructure/UserManager.cs index b83d00bd..e23cd12d 100644 --- a/Oqtane.Server/Infrastructure/UserManager.cs +++ b/Oqtane.Server/Infrastructure/UserManager.cs @@ -116,6 +116,7 @@ namespace Oqtane.Infrastructure if (succeeded) { + user.DisplayName = (user.DisplayName == null) ? user.Username : user.DisplayName; user.LastLoginOn = null; user.LastIPAddress = ""; User = _users.AddUser(user);