bounswe / bounswe2022group4

6 stars 3 forks source link

Forget Password functionality implemented for the User model #406

Closed oguzhantok closed 1 year ago

oguzhantok commented 1 year ago

I implemented the forget password functionality for the backend API. From now on user can update their password. Two endpoints implemented,

/api/user/forget_password : user's email is given as input. an email sent to the given mail address which contains the password reset code
/api/user/reset_password : user gives it's code which she get from the email, and new password. and user's password will be updated.