From 944b87b6bcccb095cd73f13f4410fb20faf48f74 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期三, 25 十二月 2019 11:21:06 +0800
Subject: [PATCH] 2019.12.25

---
 ZigbeeApp/Shared/Phone/Device/Account/AccountForgetPWD.cs |   31 ++++++++++---------------------
 1 files changed, 10 insertions(+), 21 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Account/AccountForgetPWD.cs b/ZigbeeApp/Shared/Phone/Device/Account/AccountForgetPWD.cs
index 9a7efab..c33eb4f 100644
--- a/ZigbeeApp/Shared/Phone/Device/Account/AccountForgetPWD.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Account/AccountForgetPWD.cs
@@ -172,6 +172,7 @@
         {
             phoneEmailForm.SelectedPhone.IsSelected = phoneEmailForm.SelectedEmail.IsSelected = false;
             resetBtn.Enable = resetBtn.IsSelected = false;
+            errorBtn.Text = string.Empty;
             (sender as Button).IsSelected = true;
             if ((sender as Button).Tag.ToString() == "Phone")
             {
@@ -241,7 +242,7 @@
         /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param>
         private void Account_TextChange(object sender, string mouseEventArgs)
         {
-            errorBtn.Text = "";
+            errorBtn.Text = string.Empty;
             
             if ((sender as EditText).Text.Trim().Length > 0)
             {
@@ -261,7 +262,7 @@
         /// <param name="mouseEventArgs">The ${ParameterType} instance containing the event data.</param>
         private void Code_TextChange(object sender, string mouseEventArgs)
         {
-            errorBtn.Text = "";
+            errorBtn.Text = string.Empty;
             if ((sender as EditText).Text.Trim().Length > 0)
             {
                 resetBtn.Enable = resetBtn.IsSelected = true;
@@ -284,18 +285,6 @@
         {
             if (CheckAccount(account) == false)
             {
-                return;
-            }
-            //鍏堝垽鏂�2娆″瘑鐮佽緭鍏ユ槸鍚︿竴鑷�
-            if (pwdRow.PasswrodET.Text.Trim() != pwdComfireRow.PasswrodET.Text.Trim())
-            {
-                errorBtn.TextID = R.MyInternationalizationString.TwoPasswordInconsistency;
-                return;
-            }
-
-            if (AccountLogic.Instance.CheckPwdLength(pwdRow.PasswrodET.Text.Trim()) == false)
-            {
-                errorBtn.TextID = R.MyInternationalizationString.ThePWDLengthError;
                 return;
             }
 
@@ -342,10 +331,10 @@
                     errorBtn.TextID = R.MyInternationalizationString.SENDFAIL;
                     (sender as Button).Enable = (sender as Button).IsSelected = true;
                 }
-                else if (stateCodeStr == "EXIST")
+                else if (stateCodeStr == "ACCOUNTNOEXISTS")
                 {
-                    //璐﹀彿瀛樺湪
-                    errorBtn.TextID = R.MyInternationalizationString.AccountHasBeenRegistered;
+                    //璐﹀彿涓嶅瓨鍦�
+                    errorBtn.TextID = R.MyInternationalizationString.ACCOUNTNOEXISTS;
                     (sender as Button).Enable = (sender as Button).IsSelected = true;
                 }
                 else
@@ -464,24 +453,24 @@
                     }
                     else if (stateStr == "PARAMETEROREMPTY")
                     {
-                        //鎻愪緵鐨勫弬鏁伴敊璇�
                         errorBtn.TextID = R.MyInternationalizationString.PARAMETEROREMPTY;
                     }
                     else if (stateStr == "ACCOUNTNOEXISTS")
                     {
-                        //璐﹀彿涓嶅瓨鍦�
                         errorBtn.TextID = R.MyInternationalizationString.ACCOUNTNOEXISTS;
                     }
                     else if (stateStr == "FAIL")
                     {
-                        //鎿嶄綔澶辫触
                         errorBtn.TextID = R.MyInternationalizationString.FAIL;
+                    }
+                    else if(stateStr == "NEWPASSWORDANDOLDPASSWORDEQUAL")
+                    {
+                        errorBtn.TextID = R.MyInternationalizationString.NEWPASSWORDANDOLDPASSWORDEQUAL;
                     }
                     else
                     {
                         errorBtn.TextID = R.MyInternationalizationString.RequestServerFailed;
                     }
-
                 }
                 else if (stateCodeStr == "PARAMETEROREMPTY")
                 {

--
Gitblit v1.8.0