From ee9753129e7648f1a30e867d7baeecc8e16371e8 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 13 Jun 2016 14:31:48 +0200 Subject: [PATCH] formatage du code --- Yavsc/Model/Workflow/PerformerProfile.cs | 2 +- Yavsc/Startup/Startup.OAuthHelpers.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Yavsc/Model/Workflow/PerformerProfile.cs b/Yavsc/Model/Workflow/PerformerProfile.cs index c8cab44f..ba92f089 100644 --- a/Yavsc/Model/Workflow/PerformerProfile.cs +++ b/Yavsc/Model/Workflow/PerformerProfile.cs @@ -55,6 +55,6 @@ namespace Yavsc.Models { public bool DoesBlog { get { return Performer?.Posts != null ? Performer.Posts.Count > 0 : false; } } - + } } \ No newline at end of file diff --git a/Yavsc/Startup/Startup.OAuthHelpers.cs b/Yavsc/Startup/Startup.OAuthHelpers.cs index 0c88e5e7..366e4e72 100644 --- a/Yavsc/Startup/Startup.OAuthHelpers.cs +++ b/Yavsc/Startup/Startup.OAuthHelpers.cs @@ -78,9 +78,9 @@ namespace Yavsc private async Task GrantResourceOwnerCredentials(OAuthGrantResourceOwnerCredentialsContext context) { - ApplicationUser user = null; logger.LogWarning($"GrantResourceOwnerCredentials task ... {context.UserName}"); + ApplicationUser user = null; using (var usermanager = context.HttpContext.ApplicationServices.GetRequiredService>()) { user = await usermanager.FindByNameAsync(context.UserName);