From 1910e340140f4eafc7cc774a704b48e0c52727d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Wed, 7 Mar 2018 14:29:33 +0300 Subject: [PATCH] Fix Register page to be compatible with IDS4. --- .../Pages/Account/Login.cshtml.cs | 2 +- src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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