diff --git a/src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/Login.cshtml.cs b/src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/Login.cshtml.cs index 096fba87d9..2303e2b13f 100644 --- a/src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/Login.cshtml.cs +++ b/src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/Login.cshtml.cs @@ -152,7 +152,7 @@ namespace Volo.Abp.Account.Web.Pages.Account { return Redirect("~/"); } - + await _interaction.GrantConsentAsync(context, ConsentResponse.Denied); return Redirect(ReturnUrl); } diff --git a/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs b/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs index eedf6ae26b..d091f5d1c2 100644 --- a/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs +++ b/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs @@ -51,8 +51,7 @@ namespace Volo.Abp.Account.Web.Pages.Account await _signInManager.SignInAsync(user, isPersistent: false); - //TODO: Use LocalRedirect and Url.GetLocalUrl methods instead of a custom one! - return RedirectSafely(returnUrl, returnUrlHash); + return Redirect(returnUrl); //TODO: How to ensure safety? IdentityServer requires it however it should be checked somehow! } public class PostInput