Skip to content

Commit

Permalink
N21-1273 duplications renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
arnegns committed Oct 13, 2023
1 parent a1a5c5c commit 5325486
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
});

Expand Down

0 comments on commit 5325486

Please sign in to comment.