This commit is contained in:
mike12345567 2021-07-22 14:29:30 +01:00
parent 5611c8e73e
commit 1b6a73c250
4 changed files with 12 additions and 4 deletions

View File

@ -11,7 +11,8 @@
{#if show} {#if show}
<ActionButton <ActionButton
on:click={() => window.open(`/api/global/auth/${tenantId}/google`, "_blank")} on:click={() =>
window.open(`/api/global/auth/${tenantId}/google`, "_blank")}
> >
<div class="inner"> <div class="inner">
<img src={GoogleLogo} alt="google icon" /> <img src={GoogleLogo} alt="google icon" />

View File

@ -243,7 +243,9 @@
}) })
}) })
} }
const oidcResponse = await api.get(`/api/global/configs/${ConfigTypes.OIDC}`) const oidcResponse = await api.get(
`/api/global/configs/${ConfigTypes.OIDC}`
)
const oidcDoc = await oidcResponse.json() const oidcDoc = await oidcResponse.json()
if (!oidcDoc._id) { if (!oidcDoc._id) {
providers.oidc = { providers.oidc = {

View File

@ -75,7 +75,9 @@
async function fetchSmtp() { async function fetchSmtp() {
loading = true loading = true
// fetch the configs for smtp // fetch the configs for smtp
const smtpResponse = await api.get(`/api/global/configs/${ConfigTypes.SMTP}`) const smtpResponse = await api.get(
`/api/global/configs/${ConfigTypes.SMTP}`
)
const smtpDoc = await smtpResponse.json() const smtpDoc = await smtpResponse.json()
if (!smtpDoc._id) { if (!smtpDoc._id) {

View File

@ -149,7 +149,10 @@ exports.adminUser = async ctx => {
) )
if (response.rows.some(row => row.doc.admin)) { if (response.rows.some(row => row.doc.admin)) {
ctx.throw(403, "You cannot initialise once an global user has been created.") ctx.throw(
403,
"You cannot initialise once an global user has been created."
)
} }
const user = { const user = {