1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

fixes for configuring u2f device

This commit is contained in:
Kyle Spearrin
2017-06-22 17:03:35 -04:00
parent 3ae96bd510
commit f28ae5ccd9
19 changed files with 89 additions and 33 deletions

View File

@ -19,7 +19,7 @@ namespace Bit.Core.Models.Api
{
Challenge = new ChallengeModel(user, registration);
}
Enabled = provider.Enabled;
Enabled = provider?.Enabled ?? false;
}
public TwoFactorU2fResponseModel(User user)

View File

@ -1,6 +1,6 @@
using System;
using System.Collections.Generic;
using U2F.Core.Utils;
using u2flib.Util;
namespace Bit.Core.Models
{