Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Perform a length check to assess if there's any OAuth providers confi… (dev)
  • Loading branch information
cccs-rs authored Mar 7, 2025
2 parents 56b4ab8 + c4269f0 commit 81878d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/routes/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function LoginScreen({ allowUserPass, allowSAML, allowSignup, oAu
const [buttonLoading, setButtonLoading] = useState(false);

// Quick login can only be used if there's exactly one external authentication service configured
const quickSSOLogin = allowSAML && !oAuthProviders ? true : !allowSAML && oAuthProviders?.length === 1;
const quickSSOLogin = allowSAML && oAuthProviders.length === 0 ? true : !allowSAML && oAuthProviders?.length === 1;

function reset(event) {
if ((['oauth'].includes(shownControls) && oauthTokenID) || !['oauth'].includes(shownControls)) {
Expand Down

0 comments on commit 81878d4

Please sign in to comment.