From 301ef455f3df59be9ca26ab98d8686b93c09ef4a Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Mon, 1 Mar 2021 11:31:03 -0500 Subject: [PATCH] clear Send password if whitespace (#287) --- src/angular/components/send/add-edit.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/angular/components/send/add-edit.component.ts b/src/angular/components/send/add-edit.component.ts index 34764b35375..96e9d6ff01c 100644 --- a/src/angular/components/send/add-edit.component.ts +++ b/src/angular/components/send/add-edit.component.ts @@ -187,6 +187,10 @@ export class AddEditComponent implements OnInit { } } + if (this.password != null && this.password.trim() === '') { + this.password = null; + } + const encSend = await this.encryptSend(file); try { this.formPromise = this.sendService.saveWithServer(encSend);