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)
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)