bugs fix
This commit is contained in:
parent
f2c54df2b0
commit
41a540bd1e
13 changed files with 165 additions and 114 deletions
|
@ -40,9 +40,9 @@ namespace WebsitePanel.WebDavPortal.Controllers
|
|||
{
|
||||
var user = _authenticationService.LogIn(model.Login, model.Password);
|
||||
|
||||
ViewBag.LdapIsAuthentication = user.Identity.IsAuthenticated;
|
||||
ViewBag.LdapIsAuthentication = user != null;
|
||||
|
||||
if (user.Identity.IsAuthenticated)
|
||||
if (user != null && user.Identity.IsAuthenticated)
|
||||
{
|
||||
_authenticationService.CreateAuthenticationTicket(user);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue