summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts
diff options
context:
space:
mode:
authorHazel K <acomputerdog@gmail.com>2024-10-07 14:58:39 -0400
committerHazel K <acomputerdog@gmail.com>2024-10-07 14:58:39 -0400
commitcd9bce307218c864608a0e60cb5f74262bf10d0c (patch)
tree67a57666a604834637160ffcd3c39217dac91803 /packages/frontend/src/scripts
parentMerge branch 'develop' into hazelnoot/625-protect-system-accounts (diff)
downloadsharkey-cd9bce307218c864608a0e60cb5f74262bf10d0c.tar.gz
sharkey-cd9bce307218c864608a0e60cb5f74262bf10d0c.tar.bz2
sharkey-cd9bce307218c864608a0e60cb5f74262bf10d0c.zip
prevent login and password reset for system accounts
Diffstat (limited to 'packages/frontend/src/scripts')
-rw-r--r--packages/frontend/src/scripts/show-system-account-dialog.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/frontend/src/scripts/show-system-account-dialog.ts b/packages/frontend/src/scripts/show-system-account-dialog.ts
new file mode 100644
index 0000000000..3c28d901fc
--- /dev/null
+++ b/packages/frontend/src/scripts/show-system-account-dialog.ts
@@ -0,0 +1,15 @@
+/*
+ * SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
+ * SPDX-License-Identifier: AGPL-3.0-only
+ */
+
+import * as os from '@/os.js';
+import { i18n } from '@/i18n.js';
+
+export function showSystemAccountDialog(): Promise<void> {
+ return os.alert({
+ type: 'error',
+ title: i18n.ts.systemAccountTitle,
+ text: i18n.ts.systemAccountDescription,
+ });
+}