Add admin property to accounts in the config
This commit is contained in:
parent
5a40eab800
commit
ce85ca2be0
2 changed files with 3 additions and 0 deletions
|
|
@ -10,10 +10,12 @@ port = 4000
|
||||||
# accounts.
|
# accounts.
|
||||||
# username: The account's username
|
# username: The account's username
|
||||||
# password: The account's password
|
# password: The account's password
|
||||||
|
# admin: This is just used to show extra information on the website or not.
|
||||||
# access: An array of strings representing channel names that the account has
|
# access: An array of strings representing channel names that the account has
|
||||||
# the ability to see and modify. The only special string supported is "*"
|
# the ability to see and modify. The only special string supported is "*"
|
||||||
# which is the equivalent of all channels within the system.
|
# which is the equivalent of all channels within the system.
|
||||||
[[accounts]]
|
[[accounts]]
|
||||||
username = "example"
|
username = "example"
|
||||||
password = "change-this-password-because-it's-incredibly-insecure-since-it's-public"
|
password = "change-this-password-because-it's-incredibly-insecure-since-it's-public"
|
||||||
|
admin = false
|
||||||
access = ["*"]
|
access = ["*"]
|
||||||
1
src/types/config.d.ts
vendored
1
src/types/config.d.ts
vendored
|
|
@ -1,6 +1,7 @@
|
||||||
interface account {
|
interface account {
|
||||||
username: string;
|
username: string;
|
||||||
password: string;
|
password: string;
|
||||||
|
admin: boolean;
|
||||||
access: string[];
|
access: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue