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}
<ActionButton
on:click={() => window.open(`/api/global/auth/${tenantId}/google`, "_blank")}
on:click={() =>
window.open(`/api/global/auth/${tenantId}/google`, "_blank")}
>
<div class="inner">
<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()
if (!oidcDoc._id) {
providers.oidc = {

View File

@ -75,7 +75,9 @@
async function fetchSmtp() {
loading = true
// 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()
if (!smtpDoc._id) {

View File

@ -149,7 +149,10 @@ exports.adminUser = async ctx => {
)
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 = {