Skip to content

Commit

Permalink
πŸ› fixed common validator tip
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Nov 27, 2018
1 parent f411691 commit 9193bbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/tale/validators/CommonValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ public static void valid(Contents param) {

public static void valid(LoginParam param) {
Validators.notEmpty().test(param.getUsername()).throwIfInvalid("η”¨ζˆ·ε");
Validators.notEmpty().test(param.getPassword()).throwIfInvalid("密码");
Validators.notEmpty().test(param.getPassword()).throwIfInvalid("登录密码");

Validators.moreThan(4).test(param.getUsername()).throwIfInvalid("η”¨ζˆ·ε");
Validators.lessThan(20).test(param.getUsername()).throwIfInvalid("η”¨ζˆ·ε");
Validators.moreThan(6).test(param.getPassword()).throwIfInvalid("η”¨ζˆ·ε");
Validators.lessThan(14).test(param.getPassword()).throwIfInvalid("η”¨ζˆ·ε");
Validators.moreThan(6).test(param.getPassword()).throwIfInvalid("登录密码");
Validators.lessThan(14).test(param.getPassword()).throwIfInvalid("登录密码");
}

public static void valid(InstallParam param) {
Expand Down

0 comments on commit 9193bbe

Please sign in to comment.