Update Secure Coding - Broken Authentication.md
This commit is contained in:
parent
b4859f72b1
commit
53ae9cdab0
@ -71,9 +71,7 @@ IAuthenticationService authenticationService)
|
|||||||
[HttpPost]
|
[HttpPost]
|
||||||
public IActionResult Login(LoginModel loginModel)
|
public IActionResult Login(LoginModel loginModel)
|
||||||
{
|
{
|
||||||
if (_authenticationService.AuthenticateUser(loginModel.Username,
|
if (_authenticationService.AuthenticateUser(loginModel.Username,loginModel.Password))
|
||||||
|
|
||||||
loginModel.Password))
|
|
||||||
|
|
||||||
{
|
{
|
||||||
// Generate and return authentication token
|
// Generate and return authentication token
|
||||||
|
Loading…
Reference in New Issue
Block a user