Bug 684

Summary: The client account is lost after registering with the same email
Product: CS3343 Summer storage management system for CSSAUG Reporter: xingchsha2
Component: DatabaseAssignee: xingchsha2
Status: CONFIRMED ---    
Severity: critical    
Priority: ---    
Version: 2.0   
Hardware: PC   
OS: Mac OS   
Attachments: screenshot of the panel

Description xingchsha2 2022-11-01 21:31:13 HKT
Created attachment 116 [details]
screenshot of the panel

Describe the bug:
After the client registered another account with the same email address as an account in the database, the original account's storage information is transferred to the new account.
 
Steps to reproduce the bug:
1. pull down the latest version of the program from GitHub.
2. go to the xBox/src/app folder, and switch to the "Main.java" file.
3. run the "Main.java" file.
4. register a client account with the same email address as an account in the database.
5. log in to the newly registered account, and click the record summary button.

Expected result:
On the panel, the records of this newly registered account should be empty.

Actual result:
As in the snapshot, the original account's information is transferred to this new account.

Environment:
OS: MacOS Catalina 10.15.7 
IDE: Eclipse 2022-09
Version: 3.0
OpenJDK 17