Closed MoistCode closed 1 year ago
API endpoints that accept a password_hash from the client should be renamed to receive password since clients send the non-hashed password.
password_hash
password
This is fixed on ("/api/v1/user", h.CreateUser).Methods("POST") Need to fix on ("/api/v1/user/{id:[0-9]+}", JWTAuth(h.UpdateUserPassword)).Methods("PUT")
("/api/v1/user", h.CreateUser).Methods("POST")
("/api/v1/user/{id:[0-9]+}", JWTAuth(h.UpdateUserPassword)).Methods("PUT")
API endpoints that accept a
password_hash
from the client should be renamed to receivepassword
since clients send the non-hashed password.