summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-11 19:44:46 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-11 19:44:46 +0200
commitb1a58ba7bd570854df74fc6a931d59444205fe6c (patch)
tree9a5bfa8c9ea2d5d2896e9beb87317fefedb01a67
parent:construction: fix /users/@me patch route (diff)
downloadserver-b1a58ba7bd570854df74fc6a931d59444205fe6c.tar.xz
:construction: fix /users/@me patch route
-rw-r--r--src/schema/User.ts8
1 files changed, 7 insertions, 1 deletions
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;
 }