Merge
This commit is contained in:
commit
c42aee1306
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ namespace WebsitePanel.WebDav.Core.Security.Authentication
|
||||||
|
|
||||||
var user = UserPrincipal.FindByIdentity(_principalContext, IdentityType.UserPrincipalName, login);
|
var user = UserPrincipal.FindByIdentity(_principalContext, IdentityType.UserPrincipalName, login);
|
||||||
|
|
||||||
if (_principalContext.ValidateCredentials(login, password) == false && user != null)
|
if (user == null || _principalContext.ValidateCredentials(login, password) == false)
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue