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

@ -16,5 +16,5 @@ using System.Reflection;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.2.508")]
[assembly: AssemblyFileVersion("3.0.2.508")]
[assembly: AssemblyVersion("3.0.2.509")]
[assembly: AssemblyFileVersion("3.0.2.509")]

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) {