diff --git a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs index 76387db1..82b6866b 100644 --- a/xiaofang/Assets/Script/loginScripts/LoginPanel.cs +++ b/xiaofang/Assets/Script/loginScripts/LoginPanel.cs @@ -160,10 +160,10 @@ public class LoginPanel : Base if (string.IsNullOrEmpty(input)) return false; // 检查长度限制 - if (input.Length < 3 || input.Length > 20) return false; + //if (input.Length < 3 || input.Length > 20) return false; // 检查首字符是否为字母 - if (!char.IsLetter(input[0])) return false; + //if (!char.IsLetter(input[0])) return false; // 检查是否只包含字母、数字和下划线 foreach (char c in input)