kaylinkhanal / sahayatri

0 stars 3 forks source link

Feature/mode persist #7

Closed nishanbudhathoki2266 closed 1 year ago

nishanbudhathoki2266 commented 1 year ago

I have developed some features of the app in this branch. So the changes or features that are included are: 1) Switching between user and rider is persisted (I have actually persisted in the backend), whenever the toggle is changed, a patch request is sent to the backend (from frontend) that changes the role of current user to the selected one. 2) Now through profile page, user can easily change his/her password by entering current password, new password and confirming the new password. I created a controller and route in the backend to change the password according to the userId. 3) A minor fix (wasn't necessary to mention though) -> After login, the user is directed to the home page (with useRouter)