fix client to api dtos again
This commit is contained in:
@@ -45,7 +45,7 @@ public class AuthController : ControllerBase {
|
||||
[HttpPost("login")]
|
||||
public async Task<ActionResult> Login(LoginDto dto)
|
||||
{
|
||||
var user = await users_.Get(dto.UserName);
|
||||
var user = await userManager_.FindByNameAsync(dto.UserName);
|
||||
|
||||
if (user == null) return Unauthorized();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user