diff options
| author | Adam Soltys <[email protected]> | 2025-01-15 20:10:29 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-15 20:10:29 -0800 |
| commit | 127806d1b703eb3d144e302f20268a7555f9b016 (patch) | |
| tree | 78e8a54d009e3b9212c3cae16143cd0f968188b7 | |
| parent | d850e1c2f616ac5707a1d1be015b0bcdf08bf308 (diff) | |
| download | coinos-server-127806d1b703eb3d144e302f20268a7555f9b016.tar.gz coinos-server-127806d1b703eb3d144e302f20268a7555f9b016.zip | |
save picture on registration
| -rw-r--r-- | routes/users.ts | 2 |
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); |
