Netcore: Cleanup and migrate few classes from Umbraco.Web (#9375)
* Migrated a few classes, and cleaned up by removing some old classs too in the Umbraco.Web Project Signed-off-by: Bjarke Berg <mail@bergmania.dk> * Migrated a few classes, and cleaned up by removing some old classs too in the Umbraco.Web Project Signed-off-by: Bjarke Berg <mail@bergmania.dk> * Moved SurfaceControllerTypeCollection + Builder Signed-off-by: Bjarke Berg <mail@bergmania.dk> * Moved Extension methods Signed-off-by: Bjarke Berg <mail@bergmania.dk> * Removed Wrap methods.. People should use their own TagBuilder Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
@@ -170,7 +170,7 @@ namespace Umbraco.Web.BackOffice.Controllers
|
||||
/// <remarks>
|
||||
/// This only works when the user is logged in (partially)
|
||||
/// </remarks>
|
||||
[UmbracoAuthorize(redirectToUmbracoLogin: false, requireApproval : true)]
|
||||
[UmbracoBackOfficeAuthorize(redirectToUmbracoLogin: false, requireApproval : true)]
|
||||
public async Task<UserDetail> PostSetInvitedUserPassword([FromBody]string newPassword)
|
||||
{
|
||||
var user = await _backOfficeUserManager.FindByIdAsync(_backofficeSecurityAccessor.BackofficeSecurity.GetUserId().ResultOr(0).ToString());
|
||||
@@ -235,7 +235,7 @@ namespace Umbraco.Web.BackOffice.Controllers
|
||||
throw HttpResponseException.CreateValidationErrorResponse(ModelState);
|
||||
}
|
||||
|
||||
[UmbracoAuthorize]
|
||||
[UmbracoBackOfficeAuthorize]
|
||||
[ValidateAngularAntiForgeryToken]
|
||||
public async Task<Dictionary<string, string>> GetCurrentUserLinkedLogins()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user