Make GetChangeEmailTokenPurpose public (#17209)
This commit is contained in:
parent
d0c71edd84
commit
605c522fa3
|
|
@ -576,7 +576,7 @@ namespace Microsoft.AspNetCore.Identity
|
||||||
public virtual System.Threading.Tasks.Task<int> GetAccessFailedCountAsync(TUser user) { throw null; }
|
public virtual System.Threading.Tasks.Task<int> GetAccessFailedCountAsync(TUser user) { throw null; }
|
||||||
public virtual System.Threading.Tasks.Task<string> GetAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName) { throw null; }
|
public virtual System.Threading.Tasks.Task<string> GetAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName) { throw null; }
|
||||||
public virtual System.Threading.Tasks.Task<string> GetAuthenticatorKeyAsync(TUser user) { throw null; }
|
public virtual System.Threading.Tasks.Task<string> GetAuthenticatorKeyAsync(TUser user) { throw null; }
|
||||||
protected static string GetChangeEmailTokenPurpose(string newEmail) { throw null; }
|
public static string GetChangeEmailTokenPurpose(string newEmail) { throw null; }
|
||||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||||
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>> GetClaimsAsync(TUser user) { throw null; }
|
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>> GetClaimsAsync(TUser user) { throw null; }
|
||||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||||
|
|
|
||||||
|
|
@ -576,7 +576,7 @@ namespace Microsoft.AspNetCore.Identity
|
||||||
public virtual System.Threading.Tasks.Task<int> GetAccessFailedCountAsync(TUser user) { throw null; }
|
public virtual System.Threading.Tasks.Task<int> GetAccessFailedCountAsync(TUser user) { throw null; }
|
||||||
public virtual System.Threading.Tasks.Task<string> GetAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName) { throw null; }
|
public virtual System.Threading.Tasks.Task<string> GetAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName) { throw null; }
|
||||||
public virtual System.Threading.Tasks.Task<string> GetAuthenticatorKeyAsync(TUser user) { throw null; }
|
public virtual System.Threading.Tasks.Task<string> GetAuthenticatorKeyAsync(TUser user) { throw null; }
|
||||||
protected static string GetChangeEmailTokenPurpose(string newEmail) { throw null; }
|
public static string GetChangeEmailTokenPurpose(string newEmail) { throw null; }
|
||||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||||
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>> GetClaimsAsync(TUser user) { throw null; }
|
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>> GetClaimsAsync(TUser user) { throw null; }
|
||||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||||
|
|
|
||||||
|
|
@ -2469,16 +2469,12 @@ namespace Microsoft.AspNetCore.Identity
|
||||||
return cast;
|
return cast;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Generates the token purpose used to change email.
|
/// Generates the token purpose used to change email.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="newEmail">The new email address.</param>
|
/// <param name="newEmail">The new email address.</param>
|
||||||
/// <returns>The token purpose.</returns>
|
/// <returns>The token purpose.</returns>
|
||||||
protected static string GetChangeEmailTokenPurpose(string newEmail)
|
public static string GetChangeEmailTokenPurpose(string newEmail) => "ChangeEmail:" + newEmail;
|
||||||
{
|
|
||||||
return "ChangeEmail:" + newEmail;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Should return <see cref="IdentityResult.Success"/> if validation is successful. This is
|
/// Should return <see cref="IdentityResult.Success"/> if validation is successful. This is
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue