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 */