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/AccountRegistration.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountRegistration.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountRegistration.cs
index b93a02f..fc37361 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountRegistration.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountRegistration.cs
@@ -251,6 +251,11 @@
                 if (etPasswrod.Text == "" && etConfirmPassword.Text == "") {
                     new Alert ("", Language.StringByID (R.MyInternationalizationString.PleaseWriteTheCompleteContent), Language.StringByID (R.MyInternationalizationString.Close)).Show ();
                     return;
+                } else if (passwordText.Contains(userName)) {
+                    //瀵嗙爜涓嶈兘鍖呭惈鐢ㄦ埛鍚�
+                    new Alert ("", ErrorCode.PasswordNotUsername,
+                               Language.StringByID (R.MyInternationalizationString.Close)).Show ();
+                    return;
                 } else if (!CommonUtlis.Current.CheckPassword(etPasswrod.Text.Trim ())) {
                     new Alert ("", ErrorCode.PasswordStrengthNotMatch,
                                Language.StringByID (R.MyInternationalizationString.Close)).Show ();

--
Gitblit v1.8.0