fix: copy-excluding-passwords was causing all accounts to be considered groups

Massimo Melina committed Oct 25, 2024 at 19:32 UTC 02d0ee0a9dc635d058d9797b3571b15dea286b58
2 files changed +2 -2
admin/src/ConfigFilePage.ts
+1 -1
@@ -63,7 +63,7 @@ export default function ConfigFilePage() {
63
64 function copy() {
65 if (!text) return
66 - navigator.clipboard.writeText(text.replace(/^\s*(\w*password|srp):.+\n/gm, ''))
66 + navigator.clipboard.writeText(text.replace(/^(\s*(\w*password\w*|srp):\s*).+\n/gm, '$1: removed\n'))
67 toast("copied")
68 }
69 }
admin/src/OptionsPage.ts
+1 -1
@@ -88,7 +88,7 @@ export default function OptionsPage() {
88 component: RouterLink,
89 to: "/edit",
90 startIcon: h(EditNote),
91 - }, sm ? "Edit config file" : "File"),
91 + }, sm ? "Config file" : "File"),
92 ],
93 defaults() {
94 return { sm: 6 }