From 163777d8a2cb7cfa469f54a7042528870ebc10a3 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 09 十二月 2019 17:46:20 +0800 Subject: [PATCH] 一个新版本 --- ZigbeeApp/Shared/Phone/Device/Account/AccountLogic.cs | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Account/AccountLogic.cs b/ZigbeeApp/Shared/Phone/Device/Account/AccountLogic.cs index 5199260..534233a 100755 --- a/ZigbeeApp/Shared/Phone/Device/Account/AccountLogic.cs +++ b/ZigbeeApp/Shared/Phone/Device/Account/AccountLogic.cs @@ -64,9 +64,9 @@ /// <param name="phone">鎵嬫満鍙�</param> /// <param name="zoneCode">鍖哄彿</param> /// <returns></returns> - public bool CheckPhoneWithZone(string phone,string zoneCode) + public bool CheckPhoneWithZone(string phone, string zoneCode) { - if(zoneCode=="86") + if (zoneCode == "86") { var regex = new Regex(CommonPage.PhoneRegexStr); return regex.IsMatch(phone); @@ -79,5 +79,23 @@ } #endregion + + #region 鈼� 瀵嗙爜____________________________ + + /// <summary> + /// 妫�鏌ュ瘑鐮侀暱搴﹀悎娉曟�� + /// </summary> + /// <param name="password"></param> + /// <returns></returns> + public bool CheckPwdLength(string password) + { + if (password.Trim().Length >= 6 && password.Trim().Length <= 13) + { + return true; + } + return false; + } + + #endregion } } -- Gitblit v1.8.0