1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

Adding variable description #220

This commit is contained in:
Patrik J. Braun 2022-01-14 11:12:53 +01:00
parent b9e39e0c1e
commit 4164af7c13

View File

@ -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)];
}