Browse Source

Merge pull request #24059 from abpframework/10.0-account-returnurl

Use safe redirect after registration in Account Module
pull/24068/head
Ma Liming 3 months ago
committed by GitHub
parent
commit
73a78a10ca
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs

2
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Register.cshtml.cs

@ -137,7 +137,7 @@ public class RegisterModel : AccountPageModel
await RegisterLocalUserAsync();
}
return Redirect(ReturnUrl ?? "~/"); //TODO: How to ensure safety? IdentityServer requires it however it should be checked somehow!
return await RedirectSafelyAsync(ReturnUrl, ReturnUrlHash);
}
catch (BusinessException e)
{

Loading…
Cancel
Save