diff --git a/src/services/open_id.ts b/src/services/open_id.ts index 75006da12..992eeb9d0 100644 --- a/src/services/open_id.ts +++ b/src/services/open_id.ts @@ -22,7 +22,7 @@ function checkOpenIDConfig() { } function isOpenIDEnabled() { - return !(checkOpenIDConfig().length > 0) && options.getOption('mfaMethod') === 'oauth'; + return !(checkOpenIDConfig().length > 0) && options.getOptionOrNull('mfaMethod') === 'oauth'; } function isUserSaved() {