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()
|
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 phrase = string.Join("-", fingerprint);
|
||||||
var text = string.Format("{0}:\n\n{1}", AppResources.YourAccountsFingerprint, phrase);
|
var text = string.Format("{0}:\n\n{1}", AppResources.YourAccountsFingerprint, phrase);
|
||||||
var learnMore = await _platformUtilsService.ShowDialogAsync(text, AppResources.FingerprintPhrase,
|
var learnMore = await _platformUtilsService.ShowDialogAsync(text, AppResources.FingerprintPhrase,
|
||||||
|
|
Loading…
Reference in New Issue