mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +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;
|
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);
|
await _deviceActionService.ShowLoadingAsync(AppResources.LoggingIn);
|
||||||
var result = await _authService.TokenPostAsync(EmailCell.Entry.Text, PasswordCell.Entry.Text);
|
var result = await _authService.TokenPostAsync(EmailCell.Entry.Text, PasswordCell.Entry.Text);
|
||||||
await _deviceActionService.HideLoadingAsync();
|
await _deviceActionService.HideLoadingAsync();
|
||||||
|
|
Loading…
Reference in a new issue