1
0
Fork 0
mirror of synced 2024-06-02 18:44:54 +12:00
This commit is contained in:
mike12345567 2021-07-22 14:29:30 +01:00
parent 8775ea7fd9
commit 853b7b6fdc
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 = {