Make token purpose consts public (#1344)

This commit is contained in:
Hao Kung 2017-08-03 13:00:27 -07:00 committed by GitHub
parent de1e3a6273
commit 3a13eec829
1 changed files with 3 additions and 3 deletions

View File

@ -26,17 +26,17 @@ namespace Microsoft.AspNetCore.Identity
/// <summary>
/// The data protection purpose used for the reset password related methods.
/// </summary>
protected const string ResetPasswordTokenPurpose = "ResetPassword";
public const string ResetPasswordTokenPurpose = "ResetPassword";
/// <summary>
/// The data protection purpose used for the change phone number methods.
/// </summary>
protected const string ChangePhoneNumberTokenPurpose = "ChangePhoneNumber";
public const string ChangePhoneNumberTokenPurpose = "ChangePhoneNumber";
/// <summary>
/// The data protection purpose used for the email confirmation related methods.
/// </summary>
protected const string ConfirmEmailTokenPurpose = "EmailConfirmation";
public const string ConfirmEmailTokenPurpose = "EmailConfirmation";
private readonly Dictionary<string, IUserTwoFactorTokenProvider<TUser>> _tokenProviders =
new Dictionary<string, IUserTwoFactorTokenProvider<TUser>>();