From a9d4b41da043a1994ec2e29bb9d769ee0763f332 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 11 Aug 2021 19:44:46 +0200 Subject: :construction: fix /users/@me patch route --- src/schema/User.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/schema/User.ts b/src/schema/User.ts index 77ee08b4..c7478f8d 100644 --- a/src/schema/User.ts +++ b/src/schema/User.ts @@ -5,7 +5,10 @@ export const UserModifySchema = { $avatar: String, $bio: new Length(String, 0, 190), $accent_color: Number, - $banner: String + $banner: String, + $password: String, + $new_password: String, + $code: String // 2fa code }; export interface UserModifySchema { @@ -14,4 +17,7 @@ export interface UserModifySchema { bio?: string; accent_color?: number | null; banner?: string | null; + password?: string; + new_password?: string; + code?: string; } -- cgit 1.5.1