Skip to content

Commit

Permalink
handle invalid sso domain error
Browse files Browse the repository at this point in the history
lovincyrus committed Dec 12, 2024

Verified

This commit was signed with the committer’s verified signature.
lovincyrus Cyrus Goh
1 parent 0416f04 commit 927614c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions web-auth/src/components/EmailSubmissionForm.svelte
Original file line number Diff line number Diff line change
@@ -46,9 +46,16 @@
function handleContinueSSOClick() {
const connectionName = getConnectionFromEmail(email, connectionMapObj);
if (connectionName) {
authorizeSSO(email, connectionName);
if (!connectionName) {
errorText = `IDP for the email ${email} not found. Please contact your administrator.`;
return;
}
authorizeSSO(email, connectionName);
}
$: if (email) {
errorText = "";
}
$: disabled = !(email.length > 0 && validateEmail(email));

0 comments on commit 927614c

Please sign in to comment.