Fixed bug in execution of TryAutoLogin.

This commit is contained in:
Dario Solera 2010-03-03 08:47:57 +00:00
parent b877469900
commit 768851c30f
2 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@ namespace ScrewTurn.Wiki {
SetupSession(null);
}
}
else if(HttpContext.Current.Session[Logout] == null) { // Check for filtered autologin
else if(SessionFacade.LoginKey == null && HttpContext.Current.Session[Logout] == null) { // Check for filtered autologin
// If no cookie is available, try to autologin through providers
UserInfo user = Users.TryAutoLogin(HttpContext.Current);
if(user != null) {