diff --git a/src/services/passwordGeneration.service.ts b/src/services/passwordGeneration.service.ts index 907d7664242..f5b9b083aa2 100644 --- a/src/services/passwordGeneration.service.ts +++ b/src/services/passwordGeneration.service.ts @@ -184,7 +184,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr if (options == null) { this.optionsCache = DefaultOptions; } else { - this.optionsCache = options; + this.optionsCache = Object.assign({}, DefaultOptions, options); } }