1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-28 17:18:23 +01:00

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)