зеркало из https://github.com/aspnet/Identity.git
Merge pull request #1925 from aspnet/haok/qr
Allow QR AuthenticatorIssuer to be configurable
This commit is contained in:
Коммит
4acb2f3317
|
@ -75,5 +75,10 @@ namespace Microsoft.AspNetCore.Identity
|
|||
/// The <see cref="AuthenticatorTokenProvider"/> used to validate two factor sign ins with an authenticator.
|
||||
/// </value>
|
||||
public string AuthenticatorTokenProvider { get; set; } = DefaultAuthenticatorProvider;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the issuer used for the authenticator issuer.
|
||||
/// </summary>
|
||||
public string AuthenticatorIssuer { get; set; } = "Microsoft.AspNetCore.Identity.UI";
|
||||
}
|
||||
}
|
|
@ -156,7 +156,7 @@ namespace Microsoft.AspNetCore.Identity.UI.Pages.Account.Manage.Internal
|
|||
{
|
||||
return string.Format(
|
||||
AuthenticatorUriFormat,
|
||||
_urlEncoder.Encode("Microsoft.AspNetCore.Identity.UI"),
|
||||
_urlEncoder.Encode(_userManager.Options.Tokens.AuthenticatorIssuer),
|
||||
_urlEncoder.Encode(email),
|
||||
unformattedKey);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче