From f500e14c0a994487070380c50c85e0929cbc8e63 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 05 一月 2021 10:48:04 +0800
Subject: [PATCH] 2021-01-05 1.更新

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs
index 9e869be..cf96960 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs
@@ -169,6 +169,15 @@
                     if (string.IsNullOrEmpty (etNewPassword.Text.Trim ())) {
                         new Alert ("", Language.StringByID (R.MyInternationalizationString.NewPasswordIsEmpty),
                                Language.StringByID (R.MyInternationalizationString.Close)).Show ();
+                    } else if (!string.IsNullOrEmpty(MainPage.LoginUser.Name) && etNewPassword.Text.Trim ().Contains (MainPage.LoginUser.Name)) {
+                        //瀵嗙爜涓嶈兘鍖呭惈鐢ㄦ埛鍚�
+                        new Alert ("", ErrorCode.PasswordNotUsername,
+                                   Language.StringByID (R.MyInternationalizationString.Close)).Show ();
+                        return;
+                    } else if (!CommonUtlis.Current.CheckPassword (etNewPassword.Text.Trim ())) {
+                        new Alert ("", ErrorCode.PasswordStrengthNotMatch,
+                                   Language.StringByID (R.MyInternationalizationString.Close)).Show ();
+                        //return;
                     } else if (etNewPassword.Text.Trim () != etConfrimPassword.Text.Trim ()) {
                         new Alert ("", Language.StringByID (R.MyInternationalizationString.PleaseConfirmPasswordIsCorrect),
                                Language.StringByID (R.MyInternationalizationString.Close)).Show ();

--
Gitblit v1.8.0