1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-29 12:45:20 +01:00

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

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