Update Secure Coding - Broken Authentication.md

This commit is contained in:
Mehdi 2023-12-09 10:07:39 +03:30 committed by GitHub
parent b4859f72b1
commit 53ae9cdab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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