Browse Source
Merge pull request #9303 from abpframework/reset-pass-validation-error
Handle validation errors on reset password.
pull/9336/head
liangshiwei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
2 deletions
-
modules/account/src/Volo.Abp.Account.Web/Pages/Account/ResetPassword.cshtml.cs
|
|
|
@ -63,10 +63,10 @@ namespace Volo.Abp.Account.Web.Pages.Account |
|
|
|
|
|
|
|
public virtual async Task<IActionResult> OnPostAsync() |
|
|
|
{ |
|
|
|
ValidateModel(); |
|
|
|
|
|
|
|
try |
|
|
|
{ |
|
|
|
ValidateModel(); |
|
|
|
|
|
|
|
await AccountAppService.ResetPasswordAsync( |
|
|
|
new ResetPasswordDto |
|
|
|
{ |
|
|
|
@ -87,6 +87,10 @@ namespace Volo.Abp.Account.Web.Pages.Account |
|
|
|
|
|
|
|
throw; |
|
|
|
} |
|
|
|
catch (AbpValidationException e) |
|
|
|
{ |
|
|
|
return Page(); |
|
|
|
} |
|
|
|
|
|
|
|
//TODO: Try to automatically login!
|
|
|
|
return RedirectToPage("./ResetPasswordConfirmation", new |
|
|
|
|