Enhance user authentication by adding optional OwnerWalletAddress parameter in LoginRequest and UserService. Update UserController and related components to support the new wallet address functionality, ensuring better user profile management and validation in trading operations.

This commit is contained in:
2025-11-17 13:48:05 +07:00
parent 8697f1598d
commit 06ef33b7ab
15 changed files with 1802 additions and 28 deletions

View File

@@ -44,7 +44,7 @@ public class UserController : BaseController
[HttpPost("create-token")]
public async Task<ActionResult<string>> CreateToken([FromBody] LoginRequest login)
{
var user = await _userService.Authenticate(login.Name, login.Address, login.Message, login.Signature);
var user = await _userService.Authenticate(login.Name, login.Address, login.Message, login.Signature, login.OwnerWalletAddress);
if (user != null)
{

View File

@@ -12,4 +12,5 @@ public class LoginRequest
public string Signature { get; set; }
[Required]
public string Message { get; set; }
public string? OwnerWalletAddress { get; set; }
}