formatage du code

vnext
Paul Schneider 8 years ago
parent ec4e9752ee
commit ee9753129e
2 changed files with 2 additions and 2 deletions

@ -55,6 +55,6 @@ namespace Yavsc.Models {
public bool DoesBlog { get {
return Performer?.Posts != null ? Performer.Posts.Count > 0 : false;
} }
}
}

@ -78,9 +78,9 @@ namespace Yavsc
private async Task<Task> GrantResourceOwnerCredentials(OAuthGrantResourceOwnerCredentialsContext context)
{
ApplicationUser user = null;
logger.LogWarning($"GrantResourceOwnerCredentials task ... {context.UserName}");
ApplicationUser user = null;
using (var usermanager = context.HttpContext.ApplicationServices.GetRequiredService<UserManager<ApplicationUser>>())
{
user = await usermanager.FindByNameAsync(context.UserName);

Loading…