Task #30
openHospital Registration ,login, email
0%
Description
Description
Description:
Develop the Hospital Registration feature as the first entry point of the application. This allows a hospital to register using basic details. On successful registration, the system must automatically create default users (Reception, Doctor, Admin), generate random passwords, and send login credentials to the hospital email.
Layout:
Center-- Hospital Registration Form
Top-right-- Login button
Hospital Registration Form Fields:
Hospital Name
Email
Mobile Number
Register Here button
When “Register Here” is clicked:
Validate hospital details
Create hospital record
Auto-generate 3 system users
Generate random passwords(Randomly between range: 1000 – 10000)(Temporary)
Send credentials to hospital email
Eg mail:
"""
Welcome to DocDesk
Hospital Name: City Care Hospital
Login Credentials:
Reception Login
Username: reception1@citycare.com
Password: 4821
Doctor Login
Username: doctor1@citycare.com
Password: 7394
Admin Login
Username: admin1@citycare.com
Password: 1650
Login URL: https://yourdomain.com/login
""""
Hospital Registration Table:
id (PK)
hospital_name
email
mobile
created_at
Users Table:
id (PK)
username
password
hospital_id(FK)
role
created_at
Files