Task #195
openHospital Login Monitoring and Management
0%
Description
Task: Hospital Login Monitoring and Management
Implement an hospital access control system by adding an is_active column to the hospital_reg table with a default value of 0 during registration. All newly registered hospitals must remain inactive by default, and any login attempt from such accounts should be blocked with the message: “To activate your hospital please contact 7994015932.” Ensure that login is allowed only when is_active is updated to 1, with proper validation applied consistently in the authentication flow.
Provide an interface where the admin can view the hospital_reg table records directly, displaying relevant details such as name, contact information, and current status. Each record should include an Activate/Deactivate toggle control to manage access. When activated (is_active = 1), the hospital should be able to log in immediately. When deactivated (is_active = 0), login access must be restricted.
Ensure the table clearly shows the hospital status (Active/Inactive), provides appropriate success messages upon status changes, and that all updates take effect instantly. The system must handle invalid login attempts, restricted access, and status updates gracefully with proper validation and feedback.
Updated by Ann Maria about 1 month ago
- Status changed from In Progress to Resolved