Skip to content

Commit

Permalink
reset pass parameter err (#81)
Browse files Browse the repository at this point in the history
Signed-off-by: hanzhixiao <[email protected]>
  • Loading branch information
hanzhixiao committed Jul 31, 2023
1 parent 01f7368 commit 3c132b2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/proto/chat/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ func (x *ChangePasswordReq) Check() error {
if x.UserID == "" {
return errs.ErrArgs.Wrap("userID is empty")
}
if x.CurrentPassword == "" {
return errs.ErrArgs.Wrap("currentPassword is empty")
}
if x.NewPassword == "" {
return errs.ErrArgs.Wrap("newPassword is empty")
}
Expand Down

0 comments on commit 3c132b2

Please sign in to comment.