refactor(Consumer): Eigenschaft CookieOptionsProvider hinzugefügt.
This commit is contained in:
@@ -74,7 +74,7 @@ namespace DigitalData.Auth.API.Controllers
|
||||
|
||||
private async Task<IActionResult> CreateTokenAsync(ConsumerLogin login, bool cookie = true)
|
||||
{
|
||||
var api = await _consumerService.ReadByIdAsync(login.Id);
|
||||
var api = await _consumerService.ReadByNameAsync(login.Name);
|
||||
|
||||
if (api is null || api.Password != login.Password)
|
||||
return Unauthorized();
|
||||
|
||||
Reference in New Issue
Block a user