Update src/Umbraco.Web/Security/BackOfficeSignInManager.cs

Co-Authored-By: Ronald Barendse <ronald@barend.se>
This commit is contained in:
Kenn Jacobsen
2019-07-25 07:40:44 +02:00
committed by GitHub
parent f4d8f58505
commit f27b754967

View File

@@ -117,7 +117,7 @@ namespace Umbraco.Web.Security
var userIdentity = await CreateUserIdentityAsync(user);
if (userIdentity is UmbracoBackOfficeIdentity backOfficeIdentity)
{
if(backOfficeIdentity.StartContentNodes.Length == 0 || backOfficeIdentity.StartMediaNodes.Length == 0)
if (backOfficeIdentity.StartContentNodes.Length == 0 || backOfficeIdentity.StartMediaNodes.Length == 0)
{
_logger.WriteCore(TraceEventType.Information, 0,
$"Login attempt failed for username {userName} from IP address {_request.RemoteIpAddress}, no content and/or media start nodes could be found for any of the user's groups", null, null);