diff --git a/src/Microsoft.AspNet.Identity/UserManager.cs b/src/Microsoft.AspNet.Identity/UserManager.cs index 6d68b0b25d..6b4e3a7566 100644 --- a/src/Microsoft.AspNet.Identity/UserManager.cs +++ b/src/Microsoft.AspNet.Identity/UserManager.cs @@ -204,7 +204,7 @@ namespace Microsoft.AspNet.Identity /// /// true if the backing user store supports user emails, otherwise false. /// - public virtual bool SupportsUserEmail + public virtual bool SupportsUserEmail { get { @@ -1178,7 +1178,7 @@ namespace Microsoft.AspNet.Identity } return await userRoleStore.IsInRoleAsync(user, role, CancellationToken); } - + /// /// Gets the email address for the specified . /// @@ -1622,7 +1622,7 @@ namespace Microsoft.AspNet.Identity Resources.NoTokenProvider, tokenProvider)); } - // Make sure the token is valid + // Make sure the token is valid var result = await _tokenProviders[tokenProvider].ValidateAsync("TwoFactor", token, this, user); if (!result) { @@ -1862,7 +1862,7 @@ namespace Microsoft.AspNet.Identity /// /// The user whose access failed count should be retrieved for. /// The that contains the result the asynchronous operation, the current failed access count - /// for the user.. + /// for the user. public virtual async Task GetAccessFailedCountAsync(TUser user) { ThrowIfDisposed(); @@ -1874,6 +1874,14 @@ namespace Microsoft.AspNet.Identity return await store.GetAccessFailedCountAsync(user, CancellationToken); } + /// + /// Returns a list of users from the user store who have the specified . + /// + /// The claim to look for. + /// + /// A that represents the result of the asynchronous query, a list of s who + /// have the specified claim. + /// public virtual Task> GetUsersForClaimAsync(Claim claim) { ThrowIfDisposed(); @@ -1886,12 +1894,12 @@ namespace Microsoft.AspNet.Identity } /// - /// Returns a list of users from the user store who have the specified . + /// Returns a list of users from the user store who are members of the specified . /// - /// The claim to look for. + /// The name of the role whose users should be returned. /// /// A that represents the result of the asynchronous query, a list of s who - /// have the specified claim. + /// are members of the specified role. /// public virtual Task> GetUsersInRoleAsync(string roleName) {