Skip to content

Commit

Permalink
feat: CheckUserPassword may crash
Browse files Browse the repository at this point in the history
  • Loading branch information
applepwc authored Nov 16, 2023
1 parent 1d117c4 commit 46d806e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions casdoorsdk/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@ func (c *Client) DeleteUser(user *User) (bool, error) {

func (c *Client) CheckUserPassword(user *User) (bool, error) {
response, _, err := c.modifyUser("check-user-password", user, nil)
if response == nil {
return false,err
}
return response.Status == "ok", err
}

Expand Down

0 comments on commit 46d806e

Please sign in to comment.