Fixes an issue with WebSecurity logout

This commit is contained in:
Shannon
2013-07-31 11:10:33 +10:00
parent 9bb31e9456
commit ad697db42b

View File

@@ -128,7 +128,7 @@ namespace Umbraco.Web.Security
SqlHelper.CreateParameter("@contextId", retVal));
UmbracoUserContextId = retVal.ToString();
LogHelper.Info(typeof(WebSecurity), "User Id: {0} logged in", () => userId);
LogHelper.Info<WebSecurity>("User Id: {0} logged in", () => userId);
}
@@ -147,8 +147,11 @@ namespace Umbraco.Web.Security
}
catch (Exception ex)
{
LogHelper.Error(typeof(WebSecurity), string.Format("Login with contextId {0} didn't exist in the database", UmbracoUserContextId), ex);
LogHelper.Error<WebSecurity>(string.Format("Login with contextId {0} didn't exist in the database", UmbracoUserContextId), ex);
}
//this clears the cookie
UmbracoUserContextId = "";
}
public void RenewLoginTimeout()