Browse Source

Fix Register page to be compatible with IDS4.

pull/221/head
Halil İbrahim Kalkan 9 years ago
parent
commit
1910e34014
  1. 2
      src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/Login.cshtml.cs
  2. 3
      src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs

2
src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/Login.cshtml.cs

@ -152,7 +152,7 @@ namespace Volo.Abp.Account.Web.Pages.Account
{ {
return Redirect("~/"); return Redirect("~/");
} }
await _interaction.GrantConsentAsync(context, ConsentResponse.Denied); await _interaction.GrantConsentAsync(context, ConsentResponse.Denied);
return Redirect(ReturnUrl); return Redirect(ReturnUrl);
} }

3
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); await _signInManager.SignInAsync(user, isPersistent: false);
//TODO: Use LocalRedirect and Url.GetLocalUrl methods instead of a custom one! return Redirect(returnUrl); //TODO: How to ensure safety? IdentityServer requires it however it should be checked somehow!
return RedirectSafely(returnUrl, returnUrlHash);
} }
public class PostInput public class PostInput

Loading…
Cancel
Save