Merge pull request #1927 from dotnet-maestro-bot/merge/release/2.2-to-master

[automated] Merge branch 'release/2.2' => 'master'
This commit is contained in:
Hao Kung 2018-08-17 15:41:59 -07:00 committed by GitHub
commit 0682c1309f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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";
}
}

View File

@ -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);
}