Skip to content

Commit

Permalink
fix: update onboarding request validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lyondhill committed Aug 5, 2020
1 parent 63a819d commit 6d92aaf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions onboarding.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ type OnboardingRequest struct {
}

func (r *OnboardingRequest) Valid() error {
if r.Password == "" {
return &Error{
Code: EEmptyValue,
Msg: "password is empty",
}
}

if r.User == "" {
return &Error{
Code: EEmptyValue,
Expand Down

0 comments on commit 6d92aaf

Please sign in to comment.