fix yubikey listening

This commit is contained in:
Kyle Spearrin 2019-06-10 10:53:11 -04:00
parent dca567b00d
commit e7df752581

View file

@ -90,8 +90,17 @@ namespace Bit.App.Pages
if(!_vm.YubikeyMethod)
{
_messagingService.Send("listenYubiKeyOTP", false);
_broadcasterService.Unsubscribe(nameof(TwoFactorPage));
}
_broadcasterService.Unsubscribe(nameof(TwoFactorPage));
}
protected override bool OnBackButtonPressed()
{
if(_vm.YubikeyMethod)
{
_messagingService.Send("listenYubiKeyOTP", false);
_broadcasterService.Unsubscribe(nameof(TwoFactorPage));
}
return base.OnBackButtonPressed();
}
private async void Continue_Clicked(object sender, EventArgs e)