mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
catch No public key when generating fingerprint
This commit is contained in:
parent
661cd79654
commit
046f25c223
1 changed files with 9 additions and 1 deletions
|
@ -106,7 +106,15 @@ namespace Bit.App.Pages
|
|||
|
||||
public async Task FingerprintAsync()
|
||||
{
|
||||
var fingerprint = await _cryptoService.GetFingerprintAsync(await _userService.GetUserIdAsync());
|
||||
List<string> fingerprint;
|
||||
try
|
||||
{
|
||||
fingerprint = await _cryptoService.GetFingerprintAsync(await _userService.GetUserIdAsync());
|
||||
}
|
||||
catch(Exception e) when(e.Message == "No public key available.")
|
||||
{
|
||||
return;
|
||||
}
|
||||
var phrase = string.Join("-", fingerprint);
|
||||
var text = string.Format("{0}:\n\n{1}", AppResources.YourAccountsFingerprint, phrase);
|
||||
var learnMore = await _platformUtilsService.ShowDialogAsync(text, AppResources.FingerprintPhrase,
|
||||
|
|
Loading…
Reference in a new issue