mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-05-03 07:58:11 +02:00
feat: demo flags (#1084)
This commit is contained in:
@@ -29,13 +29,16 @@ const { data: config } = useQuery({
|
||||
queryFn: (): Promise<Record<string, Array<String>>> => pb.send('/api/config', {})
|
||||
})
|
||||
|
||||
watch(config, (newConfig) => {
|
||||
if (!newConfig) return
|
||||
if (newConfig['flags'].includes('demo') || newConfig['flags'].includes('dev')) {
|
||||
mail.value = 'user@catalyst-soar.com'
|
||||
password.value = '1234567890'
|
||||
watch(
|
||||
() => config.value,
|
||||
() => {
|
||||
if (!config.value) return
|
||||
if (config.value['flags'].includes('demo') || config.value['flags'].includes('dev')) {
|
||||
mail.value = 'user@catalyst-soar.com'
|
||||
password.value = '1234567890'
|
||||
}
|
||||
}
|
||||
})
|
||||
)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user