用户密码长度校验

This commit is contained in:
RuoYi
2018-05-08 11:07:50 +08:00
parent 7734f950fa
commit ab3716c4f4
6 changed files with 10 additions and 16 deletions

View File

@ -27,7 +27,7 @@ public class UserConstants
* 用户名长度限制
*/
public static final int USERNAME_MIN_LENGTH = 2;
public static final int USERNAME_MAX_LENGTH = 10;
public static final int USERNAME_MAX_LENGTH = 20;
/** 名称是否唯一的返回结果码 */
public final static String NAME_UNIQUE = "0";