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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user