Skip to content

Commit 605c522

Browse files
authored
Make GetChangeEmailTokenPurpose public (#17209)
1 parent d0c71ed commit 605c522

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/Identity/Extensions.Core/ref/Microsoft.Extensions.Identity.Core.netcoreapp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ protected virtual void Dispose(bool disposing) { }
576576
public virtual System.Threading.Tasks.Task<int> GetAccessFailedCountAsync(TUser user) { throw null; }
577577
public virtual System.Threading.Tasks.Task<string> GetAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName) { throw null; }
578578
public virtual System.Threading.Tasks.Task<string> GetAuthenticatorKeyAsync(TUser user) { throw null; }
579-
protected static string GetChangeEmailTokenPurpose(string newEmail) { throw null; }
579+
public static string GetChangeEmailTokenPurpose(string newEmail) { throw null; }
580580
[System.Diagnostics.DebuggerStepThroughAttribute]
581581
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>> GetClaimsAsync(TUser user) { throw null; }
582582
[System.Diagnostics.DebuggerStepThroughAttribute]

src/Identity/Extensions.Core/ref/Microsoft.Extensions.Identity.Core.netstandard2.0.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ protected virtual void Dispose(bool disposing) { }
576576
public virtual System.Threading.Tasks.Task<int> GetAccessFailedCountAsync(TUser user) { throw null; }
577577
public virtual System.Threading.Tasks.Task<string> GetAuthenticationTokenAsync(TUser user, string loginProvider, string tokenName) { throw null; }
578578
public virtual System.Threading.Tasks.Task<string> GetAuthenticatorKeyAsync(TUser user) { throw null; }
579-
protected static string GetChangeEmailTokenPurpose(string newEmail) { throw null; }
579+
public static string GetChangeEmailTokenPurpose(string newEmail) { throw null; }
580580
[System.Diagnostics.DebuggerStepThroughAttribute]
581581
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>> GetClaimsAsync(TUser user) { throw null; }
582582
[System.Diagnostics.DebuggerStepThroughAttribute]

src/Identity/Extensions.Core/src/UserManager.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2469,16 +2469,12 @@ private IUserClaimStore<TUser> GetClaimStore()
24692469
return cast;
24702470
}
24712471

2472-
24732472
/// <summary>
24742473
/// Generates the token purpose used to change email.
24752474
/// </summary>
24762475
/// <param name="newEmail">The new email address.</param>
24772476
/// <returns>The token purpose.</returns>
2478-
protected static string GetChangeEmailTokenPurpose(string newEmail)
2479-
{
2480-
return "ChangeEmail:" + newEmail;
2481-
}
2477+
public static string GetChangeEmailTokenPurpose(string newEmail) => "ChangeEmail:" + newEmail;
24822478

24832479
/// <summary>
24842480
/// Should return <see cref="IdentityResult.Success"/> if validation is successful. This is

0 commit comments

Comments
 (0)