|
|
|
@ -25,7 +25,7 @@ namespace Microsoft.eShopWeb.Web.Controllers |
|
|
|
private readonly IAppLogger<ManageController> _logger; |
|
|
|
private readonly UrlEncoder _urlEncoder; |
|
|
|
|
|
|
|
private const string AuthenicatorUriFormat = "otpauth://totp/{0}:{1}?secret={2}&issuer={0}&digits=6"; |
|
|
|
private const string AuthenticatorUriFormat = "otpauth://totp/{0}:{1}?secret={2}&issuer={0}&digits=6"; |
|
|
|
|
|
|
|
public ManageController( |
|
|
|
UserManager<ApplicationUser> userManager, |
|
|
|
@ -491,7 +491,7 @@ namespace Microsoft.eShopWeb.Web.Controllers |
|
|
|
private string GenerateQrCodeUri(string email, string unformattedKey) |
|
|
|
{ |
|
|
|
return string.Format( |
|
|
|
AuthenicatorUriFormat, |
|
|
|
AuthenticatorUriFormat, |
|
|
|
_urlEncoder.Encode("eShopOnWeb"), |
|
|
|
_urlEncoder.Encode(email), |
|
|
|
unformattedKey); |
|
|
|
|