admin/accounts: notes
Massimo Melina committed
Feb 18, 2025 at 00:09 UTC
b5661a50d0fb05160183a237a37844a62c7ad6e4
2 files changed
+3
-1
admin/src/AccountForm.ts
+2
-1
@@ -95,8 +95,9 @@ export default function AccountForm({ account, done, groups, addToBar, reload }:
95
helperText: "When expired, login won't be allowed" },
96
{ k: 'days_to_live', xs: 12, sm: 6, comp: NumberField, disabled: expired, step: 'any', min: 1/1000, // 10 minutes
97
helperText: "Used to set expiration on first login" + (expired ? " (already expired)" : '') },
98
- { k: 'redirect', comp: VfsPathField, placeholder: "no",
98
+ { k: 'redirect', comp: VfsPathField, placeholder: "no", sm: 6,
99
helperText: "If you want this account to be redirected to a specific folder/address (or even file) at login time" },
100
+ { k: 'notes', multiline: true, sm: 6 },
101
],
102
onError: alertDialog,
103
save: {
src/perm.ts
+1
@@ -24,6 +24,7 @@ export interface Account {
24
days_to_live?: number // this is not inherited, but it will affect sub-accounts via 'expire'
25
allow_net?: string
26
require_password_change?: boolean
27
+ notes?: string
28
plugin?: { isGroup?: boolean, [rest: string]: unknown }
29
}
30
interface Accounts { [username:string]: Account }