clear Send password if whitespace (#1292)

* clear Send password if whitespace

* Update SendAddEditPageViewModel.cs
This commit is contained in:
Addison Beck 2021-03-01 12:07:04 -05:00 committed by GitHub
parent 6fa23475e3
commit 1098686d51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

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