This commit is contained in:
mike12345567 2021-07-21 18:24:58 +01:00
parent 63368fdae9
commit 371e38fcb9
3 changed files with 7 additions and 11 deletions

View File

@ -8,10 +8,10 @@
Heading,
ActionButton,
} from "@budibase/bbui"
import {organisation, auth} from "stores/portal"
import { organisation, auth } from "stores/portal"
import Logo from "assets/bb-emblem.svg"
import {onMount} from "svelte"
import {goto} from "@roxi/routify"
import { onMount } from "svelte"
import { goto } from "@roxi/routify"
let email = ""
@ -47,9 +47,7 @@
<Button cta on:click={forgot} disabled={!email}>
Reset your password
</Button>
<ActionButton quiet on:click={() => $goto("../")}>
Back
</ActionButton>
<ActionButton quiet on:click={() => $goto("../")}>Back</ActionButton>
</Layout>
</Layout>
</div>

View File

@ -10,7 +10,7 @@
notifications,
} from "@budibase/bbui"
import { goto, params } from "@roxi/routify"
import {auth, organisation, oidc, admin} from "stores/portal"
import { auth, organisation, oidc, admin } from "stores/portal"
import GoogleButton from "./_components/GoogleButton.svelte"
import OIDCButton from "./_components/OIDCButton.svelte"
import Logo from "assets/bb-emblem.svg"

View File

@ -113,15 +113,13 @@
// Create a flag so that it will only try to save completed forms
$: partialGoogle =
providers.google?.config?.clientID ||
providers.google?.config?.clientSecret
providers.google?.config?.clientID || providers.google?.config?.clientSecret
$: partialOidc =
providers.oidc?.config?.configs[0].configUrl ||
providers.oidc?.config?.configs[0].clientID ||
providers.oidc?.config?.configs[0].clientSecret
$: googleComplete =
providers.google?.config?.clientID &&
providers.google?.config?.clientSecret
providers.google?.config?.clientID && providers.google?.config?.clientSecret
$: oidcComplete =
providers.oidc?.config?.configs[0].configUrl &&
providers.oidc?.config?.configs[0].clientID &&