Skip to content

Commit

Permalink
fix(provider): add verificationRequest flag to email signIn callback (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kriscarle authored Feb 4, 2021
1 parent 2c81011 commit 5ee84c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/routes/signin.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default async function signin (req, res) {

// Check if user is allowed to sign in
try {
const signInCallbackResponse = await callbacks.signIn(profile, account, { email })
const signInCallbackResponse = await callbacks.signIn(profile, account, { email, verificationRequest: true })
if (signInCallbackResponse === false) {
return res.redirect(`${baseUrl}${basePath}/error?error=AccessDenied`)
} else if (typeof signInCallbackResponse === 'string') {
Expand Down

0 comments on commit 5ee84c5

Please sign in to comment.