webdav portal auth fix
This commit is contained in:
parent
d82dfbfb56
commit
c16a9a6c66
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);
|
||||
|
||||
if (_principalContext.ValidateCredentials(login, password) == false && user != null)
|
||||
if (user == null || _principalContext.ValidateCredentials(login, password) == false)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue