From de564e6fd990960ea5796eadfa3b3fda7866a256 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期一, 26 十月 2020 10:53:54 +0800 Subject: [PATCH] V2.510231 1.密码规则修改,修改为:密码必须为8-20个字符,包含字母、数字和符号。 2.APP本地增加登录,密码错误锁定,连续错误5次登录锁定,锁定5分钟。 3.登录界面,增加登录账号的邮箱格式匹配检测。 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs index 2fcff71..71054df 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs @@ -69,7 +69,7 @@ if (bodyPageView.ChildrenCount - 2 == e) { bodyPageView.RemoveAt (bodyPageView.ChildrenCount - 1); } - Console.WriteLine ("D" + e.ToString ()); + Utlis.WriteLine ("D" + e.ToString ()); }; FrameLayout bodyView = new FrameLayout (); @@ -139,10 +139,11 @@ void EmailForgot (FrameLayout FrameLayoutView) { FrameLayoutView.RemoveAll (); + var viewX = (Application.GetRealWidth (640) - Application.GetMinRealAverage (500)) / 2; EditText Register_Email_Address = new EditText () { - Width = Application.GetRealWidth (500), - Height = Application.GetRealHeight (85), - X = Application.GetRealWidth (70), + Width = Application.GetMinRealAverage (500), + Height = Application.GetMinRealAverage (85), + X = viewX, Y = Application.GetRealHeight (100), UnSelectedImagePath = "Register/Register_Email_Address.png", PlaceholderTextColor = SkinStyle.Current.PlaceholderTextColor, @@ -193,10 +194,10 @@ try { Register_Send.IsSelected = false; - var reg = new Regex ("^\\s*([A-Za-z0-9_-]+(\\.\\w+)*@(\\w+\\.)+\\w{2,5})\\s*$"); - var ss = reg.Match (emailAccount); + //var reg = new Regex ("^\\s*([A-Za-z0-9_-]+(\\.\\w+)*@(\\w+\\.)+\\w{2,5})\\s*$"); + //var ss = reg.Match (emailAccount); - if (!ss.Success) { + if (!CommonUtlis.Current.CheckEmail (emailAccount)) { Application.RunOnMainThread (() => { new Alert ("", Language.StringByID (R.MyInternationalizationString.PleaseCheckEmailAddressCorrectly), Language.StringByID (R.MyInternationalizationString.Close)).Show (); -- Gitblit v1.8.0