From 01d0eba70e7b502c3b1da6643641e9f0adc64be3 Mon Sep 17 00:00:00 2001 From: regexowl Date: Thu, 10 Apr 2025 10:24:44 +0200 Subject: [PATCH] store: Update imageBuilder API --- api/schema/imageBuilder.yaml | 4 ++++ src/store/service/imageBuilderApi.ts | 3 +++ 2 files changed, 7 insertions(+) diff --git a/api/schema/imageBuilder.yaml b/api/schema/imageBuilder.yaml index ed4c5e21..9386dd26 100644 --- a/api/schema/imageBuilder.yaml +++ b/api/schema/imageBuilder.yaml @@ -2013,6 +2013,10 @@ components: Plaintext passwords are also supported, they will be hashed and stored using the SHA-512 algorithm. The password is never returned in the response. Empty string can be used to remove the password during update but only with ssh_key set. + hasPassword: + type: boolean + description: | + Indicates whether the user has a password set. Filesystem: type: object required: diff --git a/src/store/service/imageBuilderApi.ts b/src/store/service/imageBuilderApi.ts index fe083c53..93a099e8 100644 --- a/src/store/service/imageBuilderApi.ts +++ b/src/store/service/imageBuilderApi.ts @@ -654,6 +654,9 @@ export type User = { Empty string can be used to remove the password during update but only with ssh_key set. */ password?: string | undefined; + /** Indicates whether the user has a password set. + */ + hasPassword?: boolean | undefined; }; export type Services = { /** List of services to enable by default */