clear Send password if whitespace (#287)

This commit is contained in:
Addison Beck 2021-03-01 11:31:03 -05:00 committed by GitHub
parent ff9343412e
commit 301ef455f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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);