RESTful reset password and confirm email

前端 未结 7 1983
故里飘歌
故里飘歌 2021-02-08 08:36

im thinking what is the best RESTful way how confirm email and request reseting password. Im only aiming to find correct URI...

confirm email

PUT /users/{u

7条回答
  •  深忆病人
    2021-02-08 09:30

    I've recently worked on this, my take was

    POST /{base_url}/password

    because I was actually creating a new random password and sending it over to the user

    and

    PUT /{base_url}/confirmation?token=...

    Because I am updating the confirmation that was already sent out when the user registered.

提交回复
热议问题