From 7c70aff383b0d0ad8d745a3ae369510424c10226 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 10 Oct 2018 16:00:53 -0400 Subject: [PATCH] dont catch exception for testing --- src/Core/Services/Implementations/UserService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Core/Services/Implementations/UserService.cs b/src/Core/Services/Implementations/UserService.cs index 44db54fc66..ff05d24357 100644 --- a/src/Core/Services/Implementations/UserService.cs +++ b/src/Core/Services/Implementations/UserService.cs @@ -323,8 +323,10 @@ namespace Bit.Core.Services var registerResponse = BaseModel.FromJson(deviceResponse); + /* try { + */ var challenge = challenges.OrderBy(i => i.Id).Last(i => i.KeyHandle == null); var startedReg = new StartedRegistration(challenge.Challenge, challenge.AppId); var reg = U2fLib.FinishRegistration(startedReg, registerResponse); @@ -379,11 +381,13 @@ namespace Bit.Core.Services user.SetTwoFactorProviders(providers); await UpdateTwoFactorProviderAsync(user, TwoFactorProviderType.U2f); return true; + /* } catch(U2fException) { return false; } + */ } public async Task DeleteU2fKeyAsync(User user, int id)