From 70a65841295a1fd2fd8d6091a89e183798b82d98 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Tue, 21 Dec 2021 17:55:53 +0100 Subject: [PATCH] fixed login with incorrect email and password --- server/src/routes/api/post/loginWithCredentials.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/routes/api/post/loginWithCredentials.ts b/server/src/routes/api/post/loginWithCredentials.ts index 5841e80..f128a74 100644 --- a/server/src/routes/api/post/loginWithCredentials.ts +++ b/server/src/routes/api/post/loginWithCredentials.ts @@ -9,6 +9,7 @@ const handler: ApiHandler['handler'] = async (req, res) => { if (!accessToken) { accessToken = await getAccessToken(email, password) + if (accessToken === 'undefined') accessToken = undefined } let arl if (accessToken) arl = await getArlFromAccessToken(accessToken)