mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-23 11:45:38 +01:00
catch No public key when generating fingerprint
This commit is contained in:
parent
661cd79654
commit
046f25c223
@ -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 New Issue
Block a user