mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-28 16:06:22 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
532 B
TypeScript
15 lines
532 B
TypeScript
import { UserService } from '$lib/gen'
|
|
|
|
/** The quick setup's step that replaces the default superadmin account. */
|
|
export const REPLACE_DEFAULT_SUPERADMIN_HREF = '/user/instance_settings?step=account'
|
|
|
|
/** Whether admin@windmill.dev can still sign in with changeme. Superadmin-only endpoint. */
|
|
export async function isDefaultSuperadminActive(): Promise<boolean> {
|
|
try {
|
|
return await UserService.isDefaultSuperadminActive()
|
|
} catch (e) {
|
|
console.error('Could not check the default superadmin account', e)
|
|
return false
|
|
}
|
|
}
|