Skip to content

Commit

Permalink
change payload send email verified
Browse files Browse the repository at this point in the history
  • Loading branch information
febrihidayan committed Jan 14, 2024
1 parent 2c31da3 commit 32961f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func (x *authHttpHandler) SendEmailVerified(w http.ResponseWriter, r *http.Request) {
var (
ctx = context.Background()
payload request.AuthSendEmailVerifiedRequest
payload request.AuthEmailRequest
)

decoder := json.NewDecoder(r.Body)
Expand Down
4 changes: 0 additions & 4 deletions services/auth/internal/delivery/http/request/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ type AuthRegisterRequest struct {
ConfirmPassword string `json:"confirm_password" validate:"required|min:6|same:password"`
}

type AuthSendEmailVerifiedRequest struct {
Email string `json:"email" validate:"required|min:3|email"`
}

type AuthEmailRequest struct {
Email string `json:"email" validate:"required|min:3|email"`
}
Expand Down

0 comments on commit 32961f3

Please sign in to comment.