File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/main/java/ru/mystamps/web Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -42,4 +42,9 @@ public static final class UsersActivation {
42
42
public static final int EMAIL_LENGTH = 255 ;
43
43
}
44
44
45
+ public static final class User {
46
+ public static final int LOGIN_LENGTH = 15 ;
47
+ public static final int NAME_LENGTH = 100 ;
48
+ }
49
+
45
50
}
Original file line number Diff line number Diff line change 18
18
package ru .mystamps .web .validation ;
19
19
20
20
import ru .mystamps .web .Db ;
21
- import ru .mystamps .web .entity .User ;
22
21
23
22
public final class ValidationRules {
24
23
25
24
public static final int LOGIN_MIN_LENGTH = 2 ;
26
- public static final int LOGIN_MAX_LENGTH = User .LOGIN_LENGTH ;
25
+ public static final int LOGIN_MAX_LENGTH = Db . User .LOGIN_LENGTH ;
27
26
public static final String LOGIN_REGEXP = "[-_\\ .a-zA-Z0-9]+" ;
28
27
29
- public static final int NAME_MAX_LENGTH = User .NAME_LENGTH ;
28
+ public static final int NAME_MAX_LENGTH = Db . User .NAME_LENGTH ;
30
29
public static final String NAME_REGEXP1 = "[- \\ p{L}]+" ;
31
30
public static final String NAME_REGEXP2 = "[ \\ p{L}]([- \\ p{L}]+[ \\ p{L}])*" ;
32
31
You can’t perform that action at this time.
0 commit comments