Skip to content

Commit

Permalink
Merge pull request #5 from yujular/dev
Browse files Browse the repository at this point in the history
fix: Change Status Code
  • Loading branch information
JingYiJun authored Aug 24, 2023
2 parents a2dd371 + fe30fe6 commit 0fa1172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func verifyWithEmail(c *fiber.Ctx, email, givenScope string, check bool) error {
if !registered {
message = "该邮箱未注册"
}
return c.JSON(EmailVerifyResponse{
return c.Status(400).JSON(EmailVerifyResponse{
Message: message,
Registered: registered,
Scope: scope,
Expand Down

0 comments on commit 0fa1172

Please sign in to comment.