Skip to content

Commit

Permalink
Merge pull request #17 from DGP-Studio/patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx authored Dec 23, 2023
2 parents dd54059 + c48be6f commit 609a219
Show file tree
Hide file tree
Showing 6 changed files with 920 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public async Task<IActionResult> RequestVerifyCodeAsync([FromBody] PassportReque

if (passportVerificationService.TryGetNonExpiredVerifyCode(normalizedUserName, out _))
{
return Model.Response.Response.Fail(ReturnCode.VerifyCodeTooFrequently, "请求过快,请 2 分钟后再试", ServerKeys.ServerPassportVerifyTooFrequent);
return Model.Response.Response.Fail(ReturnCode.VerifyCodeTooFrequently, "请求过快,请 1 分钟后再试", ServerKeys.ServerPassportVerifyTooFrequent);
}

string code = passportVerificationService.GenerateVerifyCodeForUserName(normalizedUserName);
Expand Down
Loading

0 comments on commit 609a219

Please sign in to comment.