| | |
| | | /// <param name="psw">密码</param>
|
| | | private void SaveSecondaryPassword(PswNumberInputControl contr, string psw)
|
| | | {
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //打开进度条
|
| | | this.ShowProgressBar();
|
| | |
| | | GesturePwd = UserCenterResourse.AccountOption.GestureAuthentication,
|
| | | StringPwd = psw
|
| | | };
|
| | | var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdatEexpandPwd", false, pra);
|
| | | var result = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdatEexpandPwd", false, pra);
|
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | |
|
| | | if (result == false)
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | contr.SetErrorMsg(string.Empty);
|
| | | }
|
| | | else
|
| | | {
|
| | | UserCenterResourse.AccountOption.PswAuthentication = psw;
|
| | | UserCenterResourse.AccountOption.Save();
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | if (result == false)
|
| | | {
|
| | | contr.SetErrorMsg(string.Empty);
|
| | | }
|
| | | else
|
| | | {
|
| | | UserCenterResourse.AccountOption.PswAuthentication = psw;
|
| | | UserCenterResourse.AccountOption.Save();
|
| | | //界面关闭
|
| | | this.CloseForm();
|
| | | });
|
| | | }
|
| | | }
|
| | | });
|
| | | });
|
| | | }
|
| | |
|