Skip to content

Commit

Permalink
fix allowUnverifiedEmail check
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed May 31, 2023
1 parent e9d832b commit 9386a7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resources/oidc.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports = (service, endpoint) => {
//
// [1]: https://developers.onelogin.com/openid-connect/guides/email-verified
// [2]: https://learn.microsoft.com/en-us/answers/questions/812672/microsoft-openid-connect-getting-verified-email
if(!config.has('default.oidc.allowUnverifiedEmail') && !config.get('default.oidc.allowUnverifiedEmail') && !email_verified) {
if(!(config.has('default.oidc.allowUnverifiedEmail') || !config.get('default.oidc.allowUnverifiedEmail')) && !email_verified) {
return emailNotVerified(res, userinfo);
}

Expand Down

0 comments on commit 9386a7b

Please sign in to comment.