Linting.
This commit is contained in:
parent
5611c8e73e
commit
1b6a73c250
|
@ -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" />
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue