Skip to content

Commit

Permalink
N21-1219 hide email section on first login when the user is an extern…
Browse files Browse the repository at this point in the history
…al user
  • Loading branch information
arnegns committed Oct 4, 2023
1 parent 2c876ea commit 8d5ce9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/firstLogin.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ router.get('/', async (req, res, next) => {
}

// EMAIL
if (!res.locals.currentUser.source) {
if (!(res.locals.currentUser.source || res.locals.currentPayload.isExternalUser)) {
// only display the confirm email page if the user was not generated from an external source
submitPageIndex += 1;
sections.push('email');
Expand Down

0 comments on commit 8d5ce9e

Please sign in to comment.