Bug 822

Summary: User cannot login with new password but can login with old password after changing password
Product: 2023 CS3343 Group 20 System Reporter: mhlee64-c
Component: AdminAssignee: chlam368-c
Status: RESOLVED FIXED    
Severity: major CC: hfwong56-c
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   
Attachments: Test case for logging in with old password after change

Description mhlee64-c 2023-12-08 22:20:57 HKT
Created attachment 167 [details]
Test case for logging in with old password after change

User are allowed to change their password for their account in the system, when the password is changed, the user should only be able to login with their new password but not old password. However, the user can login with old password but not with new password after changing password.
--------------------------------------------------------------------------------Welcome to CMS!
============================================== Login ===============================================
Please enter your staff ID: d
Please enter your password: d
============================================ Main Menu =============================================
Login as [Doctor] Dr. dummer dr one | d | 
0.	Patient Mangement
1.	Appointment Management
2.	MedRecord Management
3.	Medicine Management
4.	Admin
5.	Logoff
Please select a function: 4
============================================== Admin ===============================================
0.	Create user
1.	Update Password
Please select a function: 1
========================================== Edit password ===========================================
Please enter your old password: d
Please enter your new password: dd
Password updated successfully.
============================================ Main Menu =============================================
Login as [Doctor] Dr. dummer dr one | d | 
0.	Patient Mangement
1.	Appointment Management
2.	MedRecord Management
3.	Medicine Management
4.	Admin
5.	Logoff
Please select a function: 5
Successfully logoff.
============================================== Login ===============================================
Please enter your staff ID: d
Please enter your password: d
============================================ Main Menu =============================================
Login as [Doctor] Dr. dummer dr one | d | 
0.	Patient Mangement
1.	Appointment Management
2.	MedRecord Management
3.	Medicine Management
4.	Admin
5.	Logoff
Please select a function: 5
Successfully logoff.
============================================== Login ===============================================
Please enter your staff ID: d
Please enter your password: dd
============================================== ERROR ===============================================
exceptions.LoginFailureException: Incorrect Staff ID or password!