summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 04:03:37 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 04:03:37 +0200
commit0e9089dee95099a1ba92f292a6d0c0475fd36697 (patch)
tree7ce2fc600845397604521209a5e49a3b817d341d /src
parent:construction: experiments + gateway route (diff)
downloadserver-0e9089dee95099a1ba92f292a6d0c0475fd36697.tar.xz
:bug: fix routes user.user_data
Diffstat (limited to 'src')
-rw-r--r--src/routes/auth/register.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/routes/auth/register.ts b/src/routes/auth/register.ts

index 87ce3cc0..ce54b940 100644 --- a/src/routes/auth/register.ts +++ b/src/routes/auth/register.ts
@@ -180,9 +180,14 @@ router.post( verified: false, email: adjusted_email, flags: 0n, // TODO: generate default flags - hash: adjusted_password, guilds: [], - valid_tokens_since: new Date(), + user_data: { + hash: adjusted_password, + valid_tokens_since: new Date(), + relationships: [], + connected_accounts: [], + fingerprints: [], + }, user_settings: { afk_timeout: 300, allow_accessibility_detection: true,