Bug 822 - User cannot login with new password but can login with old password after changing password
Summary: User cannot login with new password but can login with old password after cha...
Status: RESOLVED FIXED
Alias: None
Product: 2023 CS3343 Group 20 System
Classification: Unclassified
Component: Admin (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- major
Assignee: chlam368-c
URL:
Depends on:
Blocks:
 
Reported: 2023-12-08 22:20 HKT by mhlee64-c
Modified: 2023-12-09 13:58 HKT (History)
1 user (show)

See Also:


Attachments
Test case for logging in with old password after change (41.67 KB, image/png)
2023-12-08 22:20 HKT, mhlee64-c
Details

Note You need to log in before you can comment on or make changes to this bug.
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!