Updates authorized web services/http handlers to use WebSecurity and implements the new base class

properties available in 6.1. Updates WebSecurity with a few more helpful methods.
This commit is contained in:
Shannon Deminick
2013-04-09 22:11:12 +06:00
parent 63cae70ec3
commit 16746c8548
10 changed files with 180 additions and 175 deletions

View File

@@ -65,7 +65,7 @@ namespace Umbraco.Web.UI.Install
{
var result = Security.ValidateCurrentUser(new HttpContextWrapper(Context));
if (result == ValidateUserAttempt.FailedTimedOut || result == ValidateUserAttempt.FailedNoPrivileges)
if (result == ValidateRequestAttempt.FailedTimedOut || result == ValidateRequestAttempt.FailedNoPrivileges)
{
Response.Redirect(SystemDirectories.Umbraco + "/logout.aspx?redir=" + Server.UrlEncode(Request.RawUrl));
}