Skip to content

Commit

Permalink
Force select email (Google Login) (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveyEdwards authored and koistya committed May 21, 2018
1 parent 3612dc4 commit afc88da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/routes/account.js
Expand Up @@ -81,7 +81,11 @@ loginProviders.forEach(({ provider, options }) => {
req.session.returnTo = getSuccessRedirect(req);
next();
},
passport.authenticate(provider, { failureFlash: true, ...options }),
passport.authenticate(provider, {
failureFlash: true,
prompt: 'select_account',
...options,
}),
);

router.get(`/login/${provider}/return`, (req, res, next) =>
Expand Down

0 comments on commit afc88da

Please sign in to comment.