summary refs log tree commit diff
path: root/src/util/schemas/UserModifySchema.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-02 22:24:56 +1100
committerGitHub <noreply@github.com>2023-02-02 22:24:56 +1100
commit69c55884e5cb3503d4319d2fa32eb0d7e593ee52 (patch)
tree0e9aa763b793d576bf8cffd9a1d114fc6d21e0b6 /src/util/schemas/UserModifySchema.ts
parentMerge pull request from GHSA-9q7f-pv47-cxp9 (diff)
downloadserver-69c55884e5cb3503d4319d2fa32eb0d7e593ee52.tar.xz
Merge pull request from GHSA-hqqp-gpqw-9w5c
Diffstat (limited to 'src/util/schemas/UserModifySchema.ts')
-rw-r--r--src/util/schemas/UserModifySchema.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/schemas/UserModifySchema.ts b/src/util/schemas/UserModifySchema.ts

index 2316477e..7851ec22 100644 --- a/src/util/schemas/UserModifySchema.ts +++ b/src/util/schemas/UserModifySchema.ts
@@ -33,5 +33,9 @@ export interface UserModifySchema { new_password?: string; code?: string; email?: string; + /** + * @minLength 4 + * @maxLength 4 + */ discriminator?: string; }