Skip to content

Commit c58816b

Browse files
committed
Add max consts
1 parent fb2234f commit c58816b

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/libraries/User.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,17 @@
2121

2222
class User implements JsonSerializable {
2323

24-
const DEFAULT_OPTION = 0x00000020;
24+
const DEFAULT_OPTION = 0x00000020;
25+
26+
const MAX_DISPLAY_NAME = 191;
27+
const MAX_EMAIL = 191;
28+
const MAX_ID = 0xFFFFFFFFFFFFFFFF;
29+
const MAX_OPTIONS = 0xFFFFFFFFFFFFFFFF;
30+
const MAX_PASSWORD_HASH = 191;
31+
const MAX_PASSWORD_SALT = 191;
32+
const MAX_TIMEZONE = 191;
33+
const MAX_USERNAME = 191;
34+
const MAX_VERIFIER_TOKEN = 191;
2535

2636
const OPTION_DISABLED = 0x00000001;
2737
const OPTION_VERIFIED = 0x00000002;

0 commit comments

Comments
 (0)