mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-12 23:01:52 +01:00
Fixed UserPage change password with trycatch
This commit is contained in:
parent
50e614047a
commit
79505ead2c
@ -194,7 +194,20 @@ namespace Borepin.PageModel
|
|||||||
|
|
||||||
public void UpdatePasswordCommandExecute()
|
public void UpdatePasswordCommandExecute()
|
||||||
{
|
{
|
||||||
_User.Admin.Pwd(NewPassword);
|
IsBusy = true;
|
||||||
|
if (_API.IsConnected)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
_User.Admin.Pwd(NewPassword);
|
||||||
|
NewPassword = string.Empty;
|
||||||
|
}
|
||||||
|
catch (RpcException exception) when (string.Equals(exception.Message, "RPC connection is broken. Task would never return.", StringComparison.Ordinal))
|
||||||
|
{
|
||||||
|
Log.Debug("RPC Connection Loss");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
IsBusy = false;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user