From 4164af7c137bae1c3b7e5669b0371acd706844f4 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Fri, 14 Jan 2022 11:12:53 +0100 Subject: [PATCH] Adding variable description #220 --- src/common/config/private/PrivateConfig.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/common/config/private/PrivateConfig.ts b/src/common/config/private/PrivateConfig.ts index 2d795e8c..6ff4cf98 100644 --- a/src/common/config/private/PrivateConfig.ts +++ b/src/common/config/private/PrivateConfig.ts @@ -66,10 +66,10 @@ export class UserConfig { @ConfigProperty({type: UserRoles}) role: UserRoles; - @ConfigProperty() + @ConfigProperty({description: 'Unencrypted, temporary password'}) password: string; - @ConfigProperty() + @ConfigProperty({description: 'Encrypted password'}) encryptedPassword: string; @@ -102,7 +102,10 @@ export class ServerDataBaseConfig { @ConfigProperty() mysql?: MySQLConfig = new MySQLConfig(); - @ConfigProperty({arrayType: UserConfig}) + @ConfigProperty({ + arrayType: UserConfig, + description: 'Creates these users in the DB if they do not exist. If a user with this name exist, it wont be overwritten, even if the role is different.' + }) enforcedUsers: UserConfig[] = [new UserConfig('admin', 'admin', UserRoles.Admin)]; }