From 22802be490c3a2e5837e210c201aab132ce5205c Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Wed, 25 May 2022 15:11:08 +0300 Subject: [PATCH] Reset change password form for blazor --- .../Pages/Account/AccountManage.razor.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/account/src/Volo.Abp.Account.Blazor/Pages/Account/AccountManage.razor.cs b/modules/account/src/Volo.Abp.Account.Blazor/Pages/Account/AccountManage.razor.cs index 3cb5acfda3..3a0aff243b 100644 --- a/modules/account/src/Volo.Abp.Account.Blazor/Pages/Account/AccountManage.razor.cs +++ b/modules/account/src/Volo.Abp.Account.Blazor/Pages/Account/AccountManage.razor.cs @@ -53,6 +53,8 @@ public partial class AccountManage NewPassword = ChangePasswordModel.NewPassword }); + ChangePasswordModel.Clear(); + await UiMessageService.Success(L["PasswordChanged"]); } @@ -75,6 +77,13 @@ public class ChangePasswordModel public string NewPasswordConfirm { get; set; } public bool HideOldPasswordInput { get; set; } + + public void Clear() + { + CurrentPassword = string.Empty; + NewPassword = string.Empty; + NewPasswordConfirm = string.Empty; + } } public class PersonalInfoModel