diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-04-06 20:51:14 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-04-06 20:51:14 +0200 |
commit | b4655503c8aa06bda7dc7680d96626447f88c0d2 (patch) | |
tree | 00c907c3161a23e8ff776ffe10c4eb4fedcefcb5 /src/routes | |
parent | Merge branch 'master' of https://github.com/discord-open-source/discord-api (diff) | |
download | server-b4655503c8aa06bda7dc7680d96626447f88c0d2.tar.xz |
:bug: revert login
Diffstat (limited to 'src/routes')
-rw-r--r-- | src/routes/auth/login.ts | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/routes/auth/login.ts b/src/routes/auth/login.ts index 3c279319..cc2b6202 100644 --- a/src/routes/auth/login.ts +++ b/src/routes/auth/login.ts @@ -29,16 +29,7 @@ router.post( { $or: query, }, - { - id: true, - user_settings: { - locale: true, - theme: true, - }, - user_data: { - hash: true, - }, - } + `user_data.hash id user_settings.locale user_settings.theme` ).exec(); if (!user) { |