Skip to content

Commit

Permalink
Fixed the confirm_password and password field issue of being included…
Browse files Browse the repository at this point in the history
… in the payload
  • Loading branch information
ertush committed Oct 1, 2024
1 parent ddd8499 commit fdb3ff0
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions pages/user/edit/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,14 @@ function User(props) {

url = editMode ? `${process.env.NEXT_PUBLIC_API_URL}/users/${person_details.id}/` : `${process.env.NEXT_PUBLIC_API_URL}/users/`

console.log({before: userData, event})



if(!isSetPassword && editMode){
delete userData.password
delete userData.conf_password
}

console.log({after: userData})


return





try {
fetch(url, {
Expand Down

0 comments on commit fdb3ff0

Please sign in to comment.