mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
normalize boolean type values for custom fields
This commit is contained in:
parent
6a958afd16
commit
18ac2db323
@ -211,6 +211,10 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
async encryptField(fieldModel: FieldView, key: SymmetricCryptoKey): Promise<Field> {
|
||||
const field = new Field();
|
||||
field.type = fieldModel.type;
|
||||
// normalize boolean type field values
|
||||
if (fieldModel.type === FieldType.Boolean && fieldModel.value !== 'true') {
|
||||
fieldModel.value = 'false';
|
||||
}
|
||||
|
||||
await this.encryptObjProperty(fieldModel, field, {
|
||||
name: null,
|
||||
|
Loading…
Reference in New Issue
Block a user