mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-22 05:46:26 -08:00
i think this is good enough?
i have no idea i just wanna get this over with Monofile One Point Three Here We Come! Code Cleanup Update #2 Soon ! Maybe
This commit is contained in:
parent
089def4ab5
commit
3cf1a251c7
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "monofile",
|
"name": "monofile",
|
||||||
"version": "1.3.0-beta",
|
"version": "1.3.0",
|
||||||
"description": "Discord-based file sharing",
|
"description": "Discord-based file sharing",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -437,7 +437,8 @@ authRoutes.get("/me", requiresAccount, (req,res) => {
|
||||||
res.send({
|
res.send({
|
||||||
...acc,
|
...acc,
|
||||||
sessionCount: auth.AuthTokens.filter(e => e.account == accId && e.expire > Date.now()).length,
|
sessionCount: auth.AuthTokens.filter(e => e.account == accId && e.expire > Date.now()).length,
|
||||||
sessionExpires: auth.AuthTokens.find(e => e.token == req.cookies.auth)?.expire
|
sessionExpires: auth.AuthTokens.find(e => e.token == req.cookies.auth)?.expire,
|
||||||
|
password: undefined
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue