Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
IchthysMaranathaCopy authored Mar 13, 2024
1 parent b829ac7 commit 15e11a4
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/builder/src/pages/builder/auth/login.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@
const url = `/api/global/auth/${$auth.tenantId}/oidc/configs/${$oidc.uuid}`
window.location = url
})
} else {
async function login() {
}
async function login() {
if (!$organisation.isSSOEnforced) {
form.validate()
if (Object.keys(errors).length > 0) {
console.log("errors", errors)
Expand All @@ -57,11 +58,8 @@
notifications.error(err.message ? err.message : "Invalid credentials")
}
}
function handleKeydown(evt) {
if (evt.key === "Enter") login()
}
}
if (!$organisation.isSSOEnforced) {
onMount(async () => {
try {
await organisation.init()
Expand All @@ -73,7 +71,6 @@
}
</script>
<svelte:window on:keydown={handleKeydown} />
{#if loaded}
<TestimonialPage enabled={$organisation.testimonialsEnabled}>
<Layout gap="L" noPadding>
Expand Down

0 comments on commit 15e11a4

Please sign in to comment.