Closed varshakamath1 closed 3 years ago
Task linked: CU-ccwwrh Login/Logout Patient Backend APIs
Yes, as you said, when creating new patient and doctor, create a random password, store in ledger and redis respectively, and return in response of '/register' request. We will show the randomly created password on UI for now.
Future scope will be this randomly created password will be sent to user(patient and doctor) in email.
Only during login the username and password will be in the body. For the other services in the header.
The username and password for patient in initledger function are the same as of now. username = PID1, password = PID1 username = PID2, password = PID2 so on..
I have also made entering password while creating patient mandatory.
Implementation of a password temporary flag will be done in a separate ticket.