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

get recovery code api

This commit is contained in:
Kyle Spearrin
2017-06-24 17:16:05 -04:00
parent a0fb1e0907
commit eea2ae30b4
3 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,21 @@
using System;
using Bit.Core.Models.Table;
namespace Bit.Core.Models.Api
{
public class TwoFactorRecoverResponseModel : ResponseModel
{
public TwoFactorRecoverResponseModel(User user)
: base("twoFactorRecover")
{
if(user == null)
{
throw new ArgumentNullException(nameof(user));
}
Code = user.TwoFactorRecoveryCode;
}
public string Code { get; set; }
}
}