mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
show ut8 password alert
This commit is contained in:
parent
d17ca1686e
commit
36925770d0
1 changed files with 10 additions and 0 deletions
|
@ -179,6 +179,16 @@ namespace Bit.App.Pages
|
|||
return;
|
||||
}
|
||||
|
||||
var passwordUtf8 = string.Empty;
|
||||
var utf8 = System.Text.Encoding.UTF8;
|
||||
var utfBytes = utf8.GetBytes(PasswordCell.Entry.Text);
|
||||
foreach(var b in utfBytes)
|
||||
{
|
||||
passwordUtf8 += string.Format(@"\x{0:X2}", b);
|
||||
}
|
||||
await DisplayAlert("UTF8 Password Is", passwordUtf8, AppResources.Ok);
|
||||
_deviceActionService.CopyToClipboard(PasswordCell.Entry.Text + " = " + passwordUtf8);
|
||||
|
||||
await _deviceActionService.ShowLoadingAsync(AppResources.LoggingIn);
|
||||
var result = await _authService.TokenPostAsync(EmailCell.Entry.Text, PasswordCell.Entry.Text);
|
||||
await _deviceActionService.HideLoadingAsync();
|
||||
|
|
Loading…
Reference in a new issue