|
@@ -102,9 +102,9 @@ jxrWXHbT1FB6DqkdOnBbQqS1Azqz5HxLlSyEK3F60e3SgB5iZsDZ
|
|
|
/// <returns></returns>
|
|
|
[AllowAnonymous]
|
|
|
[HttpPost("login-sign")]
|
|
|
- public async Task<string> Login([FromBody] string signature)
|
|
|
+ public async Task<string> Login([FromBody] LoginSignatureDto dto)
|
|
|
{
|
|
|
- var request = Decrypt(signature);
|
|
|
+ var request = Decrypt(dto.Signature);
|
|
|
if (request is null)
|
|
|
throw UserFriendlyException.SameMessage("用户名或密码错误!");
|
|
|
var res = await _identityAppService.LoginWithSignatureAsync(request, HttpContext.RequestAborted);
|