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

Added API for getting the current user's account revision date

This commit is contained in:
Kyle Spearrin
2017-01-14 10:02:37 -05:00
parent fd961dfdf6
commit 4e790fcfa3
7 changed files with 46 additions and 4 deletions

View File

@ -169,6 +169,13 @@ namespace Bit.Api.Controllers
return response;
}
[HttpGet("revision-date")]
public async Task<DateTime?> GetAccountRevisionDate()
{
var userId = _userService.GetProperUserId(User);
return userId.HasValue ? (await _userService.GetAccountRevisionDateByIdAsync(userId.Value)) : (DateTime?)null;
}
[HttpGet("two-factor")]
public async Task<TwoFactorResponseModel> GetTwoFactor(string masterPasswordHash, TwoFactorProviderType provider)
{