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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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) |
|
|
|
{ |
|
|
|
|