- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
public async Task<ActionResult> Enable2FA(string id)
{
if (string.IsNullOrEmpty(id))
{
return BadRequest("Invalid user Id");
}
User user = await userManager.FindByIdAsync(id);
if (user == null)
{
return BadRequest(USER_NOT_FOUND_MESSAGE);
}
EnableAuthenticatorModel model = await LoadSharedKeyAndQrCodeUriAsync(user);
return Ok(model);
}
Fike 08.04.2020 04:28 # 0
guest8 08.04.2020 04:56 # −999
KOPOHABuPYC 08.04.2020 22:22 # 0