HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-03-06 a5b3c4bae726ef6770d4bfcbf2f4b50a37ed4a15
ZigbeeApp/Shared/Phone/UserCenter/Password/EditorGesturePasswordForm.cs
@@ -35,7 +35,7 @@
            //设置头部信息
            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uGestureAuthentication));
            if (string.IsNullOrEmpty(UserCenterResourse.Option.GestureAuthentication) == false)
            if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == false)
            {
                formMode = FormMode.A验证前回密码;
            }
@@ -151,10 +151,10 @@
            }
            else if (formMode == FormMode.A验证前回密码)
            {
                if (UserCenterResourse.Option.GestureAuthentication != i_Psw)
                if (UserCenterResourse.AccountOption.GestureAuthentication != i_Psw)
                {
                    UserCenterResourse.Option.PasswordGestureInputCount--;
                    if (UserCenterResourse.Option.PasswordGestureInputCount <= 0)
                    UserCenterResourse.AccountOption.PasswordGestureInputCount--;
                    if (UserCenterResourse.AccountOption.PasswordGestureInputCount <= 0)
                    {
                        //管理员身份验证失败,请重新登录
                        string msg2 = Language.StringByID(R.MyInternationalizationString.uCheckAdministratorFailAndReload);
@@ -167,14 +167,14 @@
                    return;
                }
                //重置剩余密码次数
                UserCenterResourse.Option.ResetPasswordCount();
                UserCenterResourse.AccountOption.ResetPasswordCount();
                formMode = FormMode.A修改密码;
                this.InitMiddleFrame();
            }
            else if (formMode == FormMode.A修改密码)
            {
                if (i_Psw == UserCenterResourse.Option.GestureAuthentication)
                if (i_Psw == UserCenterResourse.AccountOption.GestureAuthentication)
                {
                    //新密码和原密码一致,请重新输入
                    pswControl.SetErrorMsg(Language.StringByID(R.MyInternationalizationString.uNewPswAndOldPswIsEqual));
@@ -238,7 +238,7 @@
                    RequestVersion = Common.CommonPage.RequestVersion,
                    LoginAccessToken = Common.Config.Instance.Token,
                    GesturePwd = psw,
                    StringPwd = UserCenterResourse.Option.PswAuthentication
                    StringPwd = UserCenterResourse.AccountOption.PswAuthentication
                };
                var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/UpdatEexpandPwd", false, pra);
                //关闭进度条
@@ -250,8 +250,8 @@
                }
                else
                {
                    UserCenterResourse.Option.GestureAuthentication = psw;
                    UserCenterResourse.Option.Save();
                    UserCenterResourse.AccountOption.GestureAuthentication = psw;
                    UserCenterResourse.AccountOption.Save();
                    HdlThreadLogic.Current.RunMain(() =>
                    {