Bug 749

Summary: the login() and changePwd() function in user.java can only return constructor.
Product: Group 05(2022) Reporter: yiweizhao4 <yiweizhao4-c>
Component: normal class sectionAssignee: yiweizhao4 <yiweizhao4-c>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   

Description yiweizhao4 2022-11-30 19:45:59 HKT
Steps to Reproduce:
In User.java, run the function login() and changePwd(), we can see the return results of if conditional sentences.

Expected output:
When method iUserDAO.queryUser() or iUserDAO.changePwd() is true, it will return a new constructor, otherwise it will return null.

Actual output:
It only can return new constructor when if conditional sentences are true.
Comment 1 yiweizhao4 2022-11-30 19:55:36 HKT
Resolution:	
We should add a branch to return null in the Login() and changePwd() in the if conditional sentences.