From b34877ffabbe72e5f86dedd28bd888cb4f66b1ef Mon Sep 17 00:00:00 2001 From: petap0w Date: Tue, 9 Jan 2024 23:12:42 +0100 Subject: [PATCH] fix extraUserFields in local auth --- server/src/strategies/local.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/strategies/local.js b/server/src/strategies/local.js index d1f00579e..d1c1abf4a 100644 --- a/server/src/strategies/local.js +++ b/server/src/strategies/local.js @@ -104,6 +104,7 @@ const authHandler = async (_req, username, password, done) => { user.discordId = userExists.discordId user.telegramId = userExists.telegramId user.webhookStrategy = userExists.webhookStrategy + user.data = userExists.data user.status = userExists.data ? (typeof userExists.data === 'string' ? JSON.parse(userExists.data).status