sonata-nfv / son-gkeeper

SONATA's Service Platform Gatekeeper
http://www.sonata-nfv.eu
Apache License 2.0
2 stars 18 forks source link

Check password save #945

Open jbonnet opened 6 years ago

jbonnet commented 6 years ago

It is not working when PUT http://sp.int3.sonata-nfv.eu:32001/api/v2/users?username=<username> is used

dang03 commented 6 years ago

Hi @jbonnet If you are trying to update the user's password, the PUT method to /api/v2/users? won't do it. It was only intended to update users private and public key. However if this functionality is needed, I can implement it (it requires adding a new case in the code).

jbonnet commented 6 years ago

Ha! Right, @dang03, we need that... Thanks,

dang03 commented 6 years ago

Ok, there I go!

dang03 commented 6 years ago

@jbonnet How is the body of the message you send to the endpoint? Is the full user registration message (including a new password) or it only has the new password key: value? Thanks

jbonnet commented 6 years ago

@dang03 the current API is to update all fields...

dang03 commented 6 years ago

Solved. The 'username' and its 'id' number can't be modified/updated.

jbonnet commented 6 years ago

+1, @dang03 @pkarkazis @mzacharioudakis can you please retest this?