From 1098686d51658a2b1299214e93b437655693ccf2 Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Mon, 1 Mar 2021 12:07:04 -0500 Subject: [PATCH] clear Send password if whitespace (#1292) * clear Send password if whitespace * Update SendAddEditPageViewModel.cs --- src/App/Pages/Send/SendAddEditPageViewModel.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App/Pages/Send/SendAddEditPageViewModel.cs b/src/App/Pages/Send/SendAddEditPageViewModel.cs index 2bf80cbde..7af8abc34 100644 --- a/src/App/Pages/Send/SendAddEditPageViewModel.cs +++ b/src/App/Pages/Send/SendAddEditPageViewModel.cs @@ -337,6 +337,11 @@ namespace Bit.App.Pages UpdateSendData(); + if (string.IsNullOrWhiteSpace(NewPassword)) + { + NewPassword = null; + } + var (send, encryptedFileData) = await _sendService.EncryptAsync(Send, FileData, NewPassword); if (send == null) {