aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-15 20:10:29 -0800
committerAdam Soltys <[email protected]>2025-01-15 20:10:29 -0800
commit127806d1b703eb3d144e302f20268a7555f9b016 (patch)
tree78e8a54d009e3b9212c3cae16143cd0f968188b7
parentd850e1c2f616ac5707a1d1be015b0bcdf08bf308 (diff)
downloadcoinos-server-127806d1b703eb3d144e302f20268a7555f9b016.tar.gz
coinos-server-127806d1b703eb3d144e302f20268a7555f9b016.zip
save picture on registration
-rw-r--r--routes/users.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/users.ts b/routes/users.ts
index 1da397ca..e29c5256 100644
--- a/routes/users.ts
+++ b/routes/users.ts
@@ -130,7 +130,7 @@ export default {
const ip = headers["cf-connecting-ip"];
if (!body.user) fail("no user object provided");
let { user } = body;
- const fields = ["pubkey", "password", "username"];
+ const fields = ["pubkey", "password", "username", "picture"];
user = await register(pick(user, fields), ip);