Skip to content

Commit a2a33b7

Browse files
committed
When tested using "TestUserDatabase3.csv" everything seems to work
1 parent bf8afc7 commit a2a33b7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/main/java/TestUserDatabase3.csv

Whitespace-only changes.

src/main/java/UserRegistrationUI.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,12 @@ public void registerUser(String username, String password, String email) {
8181
database.createUser(username, password, email, "Basic");
8282
registrationSuccess.setText("Your account has been created, please verify to login");
8383
UserVerificationUI verifyUser = new UserVerificationUI(code);
84-
verifyUser.sendVerificationCode(email);
8584
verifyUser.verify(email);
8685
}
8786
}
8887
//For Testing purposes
8988
public static void main(String[] args){
90-
UserDatabase testDB = new UserDatabase(new File("TestUserDatabase2.csv"));
89+
UserDatabase testDB = new UserDatabase(new File("TestUserDatabase3.csv"));
9190
System.out.println(testDB.UserExists("RandomUser", "[email protected]"));
9291
UserRegistrationUI testUI = new UserRegistrationUI(testDB);
9392
testUI.GetUserCredentials();

src/main/java/UserVerificationUI.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public void verify(String email){
4040
verificationPanel.add(verifyButton);
4141
verifyButton.addActionListener(this);
4242
verificationFrame.setVisible(true);
43+
44+
this.sendVerificationCode(email);
4345
}
4446
//Sends this.code to the email address given by String email
4547
public void sendVerificationCode(String email){

0 commit comments

Comments
 (0)