From 3c9ad99d4a5eeeb53f7380315197e7133f84d10c Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 27 十月 2020 14:57:33 +0800
Subject: [PATCH] 2020-10-27 1V2.510271 1.密码规则修改,修改为:密码必须为8-20个字符,包含字母、数字和符号。 2.APP本地增加登录,密码错误锁定,连续错误5次登录锁定,锁定5分钟。 3.登录界面,增加登录账号的邮箱格式匹配检测。 4.增加iOS越狱和Androidr Root检测,强制关闭APP。

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountView.cs |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountView.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountView.cs
index 19c0095..7384b09 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountView.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountView.cs
@@ -60,7 +60,7 @@
             Button btnUserIcon = new Button () {
                 X = Application.GetRealWidth (27),
                 Width = Application.GetRealWidth (96),
-                Height = Application.GetRealHeight (96),
+                Height = Application.GetRealWidth (96),
                 Gravity = Gravity.CenterVertical,
                 Radius = 5,
                 BorderColor = SkinStyle.Current.Transparent,
@@ -258,7 +258,7 @@
                         alertDialog.Close ();
                         IO.FileUtils.DeleteAllFile ();
                         foreach (var tempHome in UserConfig.Instance.HomeLists) {
-                            IO.FileUtils.DeleteRegionFiles (IO.FileUtils.CreateRegionBackup (tempHome.Name));
+                            IO.FileUtils.DeleteRegionFiles (IO.FileUtils.CreateRegionBackup (tempHome.Id));
                         }
                         MainPage.LoginUser.LastTime = DateTime.MinValue;
                         MainPage.LoginUser.SaveUserInfo ();
@@ -270,7 +270,13 @@
                             var webPush = new WebServicePush ();
                             webPush.DeleteToken_Push (UserConfig.Instance.tokenID);
                         });
-                        CommonPage.IsRemote = false;
+                        //2020-02-17 閫�鍑虹櫥褰曪紝鏂紑杩滅▼杩炴帴
+                        if (CommonPage.IsRemote) {
+                            Utlis.ShowAppLinkStatus (AppLinkStatus.WiFiOffline);
+                            CommonPage.IsRemote = false;
+                            SmartHome.MqttCommon.DisConnectRemoteMqttClient ("Logout");
+                        }
+                        //CommonPage.IsRemote = false;
                     };
 
                     btnNo.MouseUpEventHandler += (sdd, ff) => {
@@ -284,7 +290,13 @@
                             var webPush = new WebServicePush ();
                             webPush.DeleteToken_Push (UserConfig.Instance.tokenID);
                         });
-                        CommonPage.IsRemote = false;
+                        //CommonPage.IsRemote = false;
+                        //2020-02-17 閫�鍑虹櫥褰曪紝鏂紑杩滅▼杩炴帴
+                        if (CommonPage.IsRemote) {
+                            Utlis.ShowAppLinkStatus (AppLinkStatus.WiFiOffline);
+                            CommonPage.IsRemote = false;
+                            SmartHome.MqttCommon.DisConnectRemoteMqttClient ("Logout");
+                        }
                     };
 
                     alertDialog.Show ();
@@ -295,7 +307,7 @@
                     //    if (e2) {
                     //        IO.FileUtils.DeleteAllFile ();
                     //        foreach (var tempHome in UserConfig.Instance.HomeLists) {
-                    //            IO.FileUtils.DeleteRegionFiles (IO.FileUtils.CreateRegionBackup (tempHome.RegionName));
+                    //            IO.FileUtils.DeleteRegionFiles (IO.FileUtils.CreateRegionBackup (tempHome.Id));
                     //        }
                     //    }
                     //    MainPage.LoginUser.LastTime = DateTime.MinValue;

--
Gitblit v1.8.0