Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
remove domainName validation because its very dependent on the format…
Browse files Browse the repository at this point in the history
… used: Domain\username or [email protected]
  • Loading branch information
olmobrutall committed Jul 9, 2019
1 parent 593de50 commit 3ecc538
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public class WindowsAuthenticationServer
var domainName = userName.TryAfterLast('@') ?? userName.TryBefore('\\') ?? config.DomainName;
var localName = userName.TryBeforeLast('@') ?? userName.TryAfter('\\') ?? userName;

if (domainName != null && domainName == config.DomainName)
{
UserEntity? user = AuthLogic.RetrieveUser(localName);
if (user != null)
Expand Down

0 comments on commit 3ecc538

Please sign in to comment.