Changed the login endpoints
This commit is contained in:
parent
bcc416f47e
commit
f45ada2be2
@ -48,7 +48,7 @@ namespace MarcoBMS.Services.Controllers
|
||||
|
||||
// old login APIs
|
||||
|
||||
[HttpPost("login")]
|
||||
[HttpPost("login/v1")]
|
||||
public async Task<IActionResult> Login([FromBody] LoginDto loginDto)
|
||||
{
|
||||
await using var _context = await _dbContextFactory.CreateDbContextAsync();
|
||||
@ -198,7 +198,7 @@ namespace MarcoBMS.Services.Controllers
|
||||
return Ok(ApiResponse<object>.SuccessResponse(responseData, "User logged in successfully.", 200));
|
||||
}
|
||||
|
||||
[HttpPost("login-mpin")]
|
||||
[HttpPost("login-mpin/v1")]
|
||||
public async Task<IActionResult> VerifyMPIN([FromBody] VerifyMPINDto verifyMPIN)
|
||||
{
|
||||
await using var _context = await _dbContextFactory.CreateDbContextAsync();
|
||||
@ -292,7 +292,7 @@ namespace MarcoBMS.Services.Controllers
|
||||
|
||||
// new login APIs
|
||||
|
||||
[HttpPost("login/v2")]
|
||||
[HttpPost("login")]
|
||||
public async Task<IActionResult> LoginAsync([FromBody] LoginDto loginDto)
|
||||
{
|
||||
await using var _context = await _dbContextFactory.CreateDbContextAsync();
|
||||
@ -450,7 +450,7 @@ namespace MarcoBMS.Services.Controllers
|
||||
return Ok(ApiResponse<object>.SuccessResponse(responseData, "User logged in successfully.", 200));
|
||||
}
|
||||
|
||||
[HttpPost("login-mpin/v2")]
|
||||
[HttpPost("login-mpin")]
|
||||
public async Task<IActionResult> VerifyMPINAsync([FromBody] VerifyMPINDto verifyMPIN)
|
||||
{
|
||||
await using var _context = await _dbContextFactory.CreateDbContextAsync();
|
||||
|
Loading…
x
Reference in New Issue
Block a user