Make token purpose consts public (#1344)
This commit is contained in:
parent
de1e3a6273
commit
3a13eec829
|
|
@ -26,17 +26,17 @@ namespace Microsoft.AspNetCore.Identity
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The data protection purpose used for the reset password related methods.
|
/// The data protection purpose used for the reset password related methods.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected const string ResetPasswordTokenPurpose = "ResetPassword";
|
public const string ResetPasswordTokenPurpose = "ResetPassword";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The data protection purpose used for the change phone number methods.
|
/// The data protection purpose used for the change phone number methods.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected const string ChangePhoneNumberTokenPurpose = "ChangePhoneNumber";
|
public const string ChangePhoneNumberTokenPurpose = "ChangePhoneNumber";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The data protection purpose used for the email confirmation related methods.
|
/// The data protection purpose used for the email confirmation related methods.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected const string ConfirmEmailTokenPurpose = "EmailConfirmation";
|
public const string ConfirmEmailTokenPurpose = "EmailConfirmation";
|
||||||
|
|
||||||
private readonly Dictionary<string, IUserTwoFactorTokenProvider<TUser>> _tokenProviders =
|
private readonly Dictionary<string, IUserTwoFactorTokenProvider<TUser>> _tokenProviders =
|
||||||
new Dictionary<string, IUserTwoFactorTokenProvider<TUser>>();
|
new Dictionary<string, IUserTwoFactorTokenProvider<TUser>>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue