forked from ddrilling/AsbCloudServer
fix JwtBearerEvents
This commit is contained in:
parent
536cc55c97
commit
750e63300c
@ -121,8 +121,7 @@ namespace AsbCloudWebApi
|
|||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
context.HttpContext.RequestServices.GetRequiredService<IUserRepository>();
|
var userService = context.HttpContext.RequestServices.GetRequiredService<IUserRepository>();
|
||||||
var userService = services.BuildServiceProvider().GetRequiredService<IUserRepository>();
|
|
||||||
var user = userService.GetOrDefault(idUser.Value);
|
var user = userService.GetOrDefault(idUser.Value);
|
||||||
|
|
||||||
if (user is null)
|
if (user is null)
|
||||||
|
Loading…
Reference in New Issue
Block a user