Hyphenate documentation
Hyphenate "two-factor authentication" in documentation. Add line break before return statements.
This commit is contained in:
parent
d1793dda5f
commit
9b8cd29087
|
|
@ -13,14 +13,15 @@ namespace Microsoft.AspNetCore.Identity
|
|||
public class AuthenticatorTokenProvider<TUser> : IUserTwoFactorTokenProvider<TUser> where TUser : class
|
||||
{
|
||||
/// <summary>
|
||||
/// Checks if a two factor authentication token can be generated for the specified <paramref name="user"/>.
|
||||
/// Checks if a two-factor authentication token can be generated for the specified <paramref name="user"/>.
|
||||
/// </summary>
|
||||
/// <param name="manager">The <see cref="UserManager{TUser}"/> to retrieve the <paramref name="user"/> from.</param>
|
||||
/// <param name="user">The <typeparamref name="TUser"/> to check for the possibility of generating a two factor authentication token.</param>
|
||||
/// <param name="user">The <typeparamref name="TUser"/> to check for the possibility of generating a two-factor authentication token.</param>
|
||||
/// <returns>True if the user has an authenticator key set, otherwise false.</returns>
|
||||
public async virtual Task<bool> CanGenerateTwoFactorTokenAsync(UserManager<TUser> manager, TUser user)
|
||||
{
|
||||
var key = await manager.GetAuthenticatorKeyAsync(user);
|
||||
|
||||
return !string.IsNullOrWhiteSpace(key);
|
||||
}
|
||||
|
||||
|
|
@ -65,6 +66,7 @@ namespace Microsoft.AspNetCore.Identity
|
|||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue