From 1d4908c193ffbc8c351fadcd1e8d9ba12af835d2 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 15 十二月 2020 14:17:28 +0800 Subject: [PATCH] 2020-12-15 1.客服反馈问题修改。2.翻译字段纠正。3.修改备注增加判空处理 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs index 1a5b54c..cf96960 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs @@ -169,7 +169,12 @@ if (string.IsNullOrEmpty (etNewPassword.Text.Trim ())) { new Alert ("", Language.StringByID (R.MyInternationalizationString.NewPasswordIsEmpty), Language.StringByID (R.MyInternationalizationString.Close)).Show (); - }else if (!CommonUtlis.Current.CheckPassword (etNewPassword.Text.Trim ())) { + } 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; -- Gitblit v1.8.0