From 532548679476acb11bc4c60b7c83b3e6c8c2e672 Mon Sep 17 00:00:00 2001 From: Arne Gnisa Date: Fri, 13 Oct 2023 13:19:49 +0200 Subject: [PATCH] N21-1273 duplications renaming --- controllers/login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/login.js b/controllers/login.js index 82e77711ec..96f1391301 100644 --- a/controllers/login.js +++ b/controllers/login.js @@ -98,8 +98,8 @@ router.post('/login/email', async (req, res) => { const loginEmailRedirect = await authHelper.loginUser(req, res, 'local', payload, redirect); res.redirect(loginEmailRedirect.redirect); - } catch (ldapLoginError) { - return authHelper.handleLoginError(req, res, ldapLoginError.error, redirect, 'local'); + } catch (ldapEmailError) { + return authHelper.handleLoginError(req, res, ldapEmailError.error, redirect, 'local'); } });