Merge pull request #1869 from tincann/patch-1
Fix misleading exception message when adding a TokenProvider
This commit is contained in:
commit
1d7a410832
|
|
@ -127,7 +127,7 @@ namespace Microsoft.AspNetCore.Identity
|
|||
{
|
||||
if (!typeof(IUserTwoFactorTokenProvider<>).MakeGenericType(UserType).GetTypeInfo().IsAssignableFrom(provider.GetTypeInfo()))
|
||||
{
|
||||
throw new InvalidOperationException(Resources.FormatInvalidManagerType(provider.Name, "IUserTokenProvider", UserType.Name));
|
||||
throw new InvalidOperationException(Resources.FormatInvalidManagerType(provider.Name, "IUserTwoFactorTokenProvider", UserType.Name));
|
||||
}
|
||||
Services.Configure<IdentityOptions>(options =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue