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/AccountModifyPassword.cs | 4 ++++ 1 files changed, 4 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..1a5b54c 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs @@ -169,6 +169,10 @@ 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 ())) { + 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