解决无法输入问题
This commit is contained in:
parent
5f4bcc3860
commit
74222afacf
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user