Updates ValidateCurrentUser so that it doesn't re-decrypt the cookie since that is already done, it just needs to check if the current user is authenticated and if it is a back office identity. Added lots of notes for extension points when we start looking at extending how the back office auth works.

This commit is contained in:
Shannon
2014-12-05 10:29:18 +11:00
parent 788a0241d8
commit ad66613011
5 changed files with 39 additions and 26 deletions

View File

@@ -57,8 +57,7 @@ namespace Umbraco.Web.Install.Controllers
switch (result)
{
case ValidateRequestAttempt.FailedNoPrivileges:
case ValidateRequestAttempt.FailedTimedOut:
case ValidateRequestAttempt.FailedNoContextId:
case ValidateRequestAttempt.FailedNoContextId:
return Redirect(SystemDirectories.Umbraco + "/AuthorizeUpgrade?redir=" + Server.UrlEncode(Request.RawUrl));
}
}