formatage du code
This commit is contained in:
parent
28ef3313af
commit
c1c1e420ee
2 changed files with 2 additions and 2 deletions
|
|
@ -78,9 +78,9 @@ namespace Yavsc
|
||||||
|
|
||||||
private async Task<Task> GrantResourceOwnerCredentials(OAuthGrantResourceOwnerCredentialsContext context)
|
private async Task<Task> GrantResourceOwnerCredentials(OAuthGrantResourceOwnerCredentialsContext context)
|
||||||
{
|
{
|
||||||
ApplicationUser user = null;
|
|
||||||
logger.LogWarning($"GrantResourceOwnerCredentials task ... {context.UserName}");
|
logger.LogWarning($"GrantResourceOwnerCredentials task ... {context.UserName}");
|
||||||
|
|
||||||
|
ApplicationUser user = null;
|
||||||
using (var usermanager = context.HttpContext.ApplicationServices.GetRequiredService<UserManager<ApplicationUser>>())
|
using (var usermanager = context.HttpContext.ApplicationServices.GetRequiredService<UserManager<ApplicationUser>>())
|
||||||
{
|
{
|
||||||
user = await usermanager.FindByNameAsync(context.UserName);
|
user = await usermanager.FindByNameAsync(context.UserName);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue