House Cleaning - Spell check and grammar. 🚿
This commit is contained in:
parent
f147951d92
commit
8928f8446f
|
|
@ -12,7 +12,7 @@ namespace Microsoft.AspNet.Identity.CoreCompat
|
|||
where TUser : IdentityUser
|
||||
{
|
||||
/// <summary>
|
||||
/// Default constuctor which uses a new instance of a default EntityDbContext.
|
||||
/// Default constructor which uses a new instance of a default EntityDbContext.
|
||||
/// </summary>
|
||||
public UserStore()
|
||||
: this(new IdentityDbContext<TUser>())
|
||||
|
|
|
|||
|
|
@ -435,7 +435,7 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore
|
|||
private DbSet<TRoleClaim> RoleClaims { get { return Context.Set<TRoleClaim>(); } }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a entity representing a role claim.
|
||||
/// Creates an entity representing a role claim.
|
||||
/// </summary>
|
||||
/// <param name="role">The associated role.</param>
|
||||
/// <param name="claim">The associated claim.</param>
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ namespace Microsoft.AspNetCore.Identity.Service
|
|||
}
|
||||
|
||||
var rsaSecurityKey = credentials.Key as RsaSecurityKey;
|
||||
// Check that the key has either an Asymetric Algorithm assigned or that at least
|
||||
// Check that the key has either an Asymmetric Algorithm assigned or that at least
|
||||
// one of the RSA parameters are initialized to consider the key "valid".
|
||||
if (rsaSecurityKey != null &&
|
||||
(rsaSecurityKey.Rsa != null || rsaSecurityKey.Parameters.Modulus != null))
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ namespace Microsoft.AspNetCore.Identity
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// The cancellation token assocated with the current HttpContext.RequestAborted or CancellationToken.None if unavailable.
|
||||
/// The cancellation token associated with the current HttpContext.RequestAborted or CancellationToken.None if unavailable.
|
||||
/// </summary>
|
||||
protected override CancellationToken CancellationToken => _cancel;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ namespace Microsoft.AspNetCore.Identity
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// The cancellation token assocated with the current HttpContext.RequestAborted or CancellationToken.None if unavailable.
|
||||
/// The cancellation token associated with the current HttpContext.RequestAborted or CancellationToken.None if unavailable.
|
||||
/// </summary>
|
||||
protected override CancellationToken CancellationToken => _cancel;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
namespace Microsoft.AspNetCore.Identity
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents all the options you can use to configure the cookies middleware uesd by the identity system.
|
||||
/// Represents all the options you can use to configure the cookies middleware used by the identity system.
|
||||
/// </summary>
|
||||
public class IdentityConstants
|
||||
{
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ namespace Microsoft.AspNetCore.Identity
|
|||
/// Gets a flag indicating whether the backing user store supports a user authenticator.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// true if the backing user store supports a user authenticatior, otherwise false.
|
||||
/// true if the backing user store supports a user authenticator, otherwise false.
|
||||
/// </value>
|
||||
public virtual bool SupportsUserAuthenticatorKey
|
||||
{
|
||||
|
|
@ -193,7 +193,7 @@ namespace Microsoft.AspNetCore.Identity
|
|||
/// Gets a flag indicating whether the backing user store supports recovery codes.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// true if the backing user store supports a user authenticatior, otherwise false.
|
||||
/// true if the backing user store supports a user authenticator, otherwise false.
|
||||
/// </value>
|
||||
public virtual bool SupportsUserTwoFactorRecoveryCodes
|
||||
{
|
||||
|
|
@ -961,7 +961,7 @@ namespace Microsoft.AspNetCore.Identity
|
|||
var existingUser = await FindByLoginAsync(login.LoginProvider, login.ProviderKey);
|
||||
if (existingUser != null)
|
||||
{
|
||||
Logger.LogWarning(4, "AddLogin for user {userId} failed because it was already assocated with another user.", await GetUserIdAsync(user));
|
||||
Logger.LogWarning(4, "AddLogin for user {userId} failed because it was already associated with another user.", await GetUserIdAsync(user));
|
||||
return IdentityResult.Failed(ErrorDescriber.LoginAlreadyAssociated());
|
||||
}
|
||||
await loginStore.AddLoginAsync(user, login, CancellationToken);
|
||||
|
|
|
|||
Loading…
Reference in New Issue